Posted on April 5, 2010.
How do I get a null string array to go in Java?!? When my JOptionPane to display output shows my list of my String array is null the word next to each line of string in each element ... How do I get this to go away?
/ * User inputs * Number int /
String [] = new colleges] String [number;
/ * "A" increases elements * /
int a = 0;
for (int b = 1, b <= number; b + +) (
/ * * Ask the user name / College
College JOptionPane.showInputDialog = String ("Enter the name of the college" + b +":");
Colleges [a] + college = "\ n";
Then, to display the list of colleges in a message box that I have:
/ * List items in colleges table, equal to the names * /
for (int z = 0, z <colleges.length, z + +) (
Colleges + Name = [z];
)
JOptionPane.showmessagedialog null ("Yo ... top colleges are:" + name)
Replace it with a byte array and remove it that way. Strings as null at the end.