Computer Science Canada

Strings and Length

Author:  gohan [ 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.

Author:  wtd [ Thu Oct 13, 2005 1:07 pm ]
Post subject: 

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

String inputLine = keyboardInput.readLine();

System.out.println(inputLine.length());


: