hi..
i got this program which is going to enter many names+the price.
String name[];
int size=Integer.parseInt(JOptionPane.showInputDialog("how many
names?"));
name=new String[size];
System.out.println(i+"num"+"\t"+"item"+"\t"+"price RM");
for(int i=0;i<name.length;i++)
name[i]=JOptionPane.showInputDialog("name of of "+(i
+1)+"\t:"+size);
for(int i=0;i<name.length;i++)
System.out.println();
*\ i want to enter another method for searching which is going
compareTO new String
but when i use compareTo statment, it does not work wif me.plz help me:
(
the thing , when i use compareTo
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---