Home     Archive     RSS XML     Contact Search

Marketplace

Top 10 Colleges

Posted on April 5, 2010.
Top 10 CollegesHow 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.

Share |

Comments

There are no comments.

Leave a Comment

Your Name
Your Email
Comments
Human Check. Type 9894.

Newest
Retro Baby
Emo Jeans
Running Shorts
Dainese Delmar
Easter Greeting Cards
Walking Shorts
Ladies Shorts
Mother Of The Bride Gifts

Network
Clothing Scene
Formal Clothes
Ready Clothes
Jewelry Boat
Jewelry Corporation
Feet Backs
Clothes Island
Teen Hobbyist
Pets Log
Pet Sexy.
Gamed Owner
Toy Parlour