c - sort arrays can't get method to work -
a tag keyword or label categorizes question other, similar questions.a tag keyword or label categorizes question other, similar questions.
you should change
for (int x = 0; x < sort; x++)
to
for (int x = 0; x < sort.length; x++)
instead. and
string[] sort = new string[listnames];
to
string[] sort = new string[listnames.length];
also , joptionpane.showmessagedialog()
should used in way:
joptionpane.showmessagedialog(null," tutor last name , first name listed in alphabetically order"+(x+1)+ " " + "for example: 'smith, john'");
Comments
Post a Comment