Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Strings and Length
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gohan




PostPosted: Thu Oct 13, 2005 11:08 am   Post subject: Strings and Length

Ok...I am in ICS3M, and we are learning Java...but I am very sick and therefore is very behind in class...so i can't get lessons from the teacher..
I know what they are learning because the teacher puts on a web page what they have discussed in class, but no lessons Crying or Very sad

So i need to kno how to read strings

and how to get the length of the strings.

Java help is not like Turing.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Thu Oct 13, 2005 1:07 pm   Post subject: (No subject)

Java:
BufferedReader keyboardInput = new BufferedReader(
   new InputStreamReader(System.in));

String inputLine = keyboardInput.readLine();

System.out.println(inputLine.length());
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: