hi evreybody
how can i get strings in java?
thanks.

Recommended Answers

All 3 Replies

Your question is not very specific. If you want to know how to create a String in Java, you do it like this:

String aString = "blah";

The String with name aString now contains the letters blah.

or, if you want the value of Strings being inputted by the user instead of hardcoded, I'd suggest you look into JOptionPane and Scanner

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.