943,602 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 376
  • Java RSS
Jan 21st, 2009
0

string

Expand Post »
hi evreybody
how can i get strings in java?
thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xlx16 is offline Offline
10 posts
since May 2008
Jan 22nd, 2009
0

Re: string

Your question is not very specific. If you want to know how to create a String in Java, you do it like this:
java Syntax (Toggle Plain Text)
  1. String aString = "blah";
The String with name aString now contains the letters blah.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007
Jan 22nd, 2009
0

Re: string

May be this javdocs link will clear up all the possible ways to get Strings :-
http://java.sun.com/j2se/1.4.2/docs/...ng/String.html
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Jan 22nd, 2009
0

Re: string

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
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is online now Online
2,474 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: need a little help with a switch problem
Next Thread in Java Forum Timeline: Needing help with my code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC