Hi Everyone.
Need some help. I have no ideal how to start this.
my arlist is as followed
static ArrayList arlist;
arlist = new ArrayList<ticke t>()
I do not know where to go after this how do I compare a value with a class method??? ie empid it does not work, it tell me I can not because its static
Here is what I have so far
Thanks
sandy
Need some help. I have no ideal how to start this.
my arlist is as followed
static ArrayList arlist;
arlist = new ArrayList<ticke t>()
I do not know where to go after this how do I compare a value with a class method??? ie empid it does not work, it tell me I can not because its static
Here is what I have so far
Code:
String ans;// used temp to hold a value
System.out.print("Enter name==> ");
ans = input_flag.next();
// loop through the array
int pos = 0;
for(String idx : name) {
if( ans.equalsIgnoreCase(idx)) {
break;
sandy
Comment