Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

String input

  Asked By: Carolina    Date: Sep 26    Category: Java    Views: 825
  

I usually noticed that var=(char)System.in.read(); reads a character,
but how do you read a string? I probably should declare it as a
variable first. My professor in my Java class is about to teach us
how to do that.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Eileen Carr     Answered On: Sep 26

I normaly use ... new BufferedReader(new InputStreamReader(System.in)));

 
Didn't find what you were looking for? Find more on String input Or get search suggestion and latest updates.




Tagged: