Read data from console and print in one file. That would be
in C:\temp ? Thanks, Bose
Answer Posted / avi
@Pushpa...
If u r reading console data from the method other than main() then u need to use Console class and scanner.
And use StringBuffer in place of String as when u r using '+' operator it creates new string object. So use StringBuffer and use API append("").
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does @param args mean in java?
If a method is declared as protected, where may the method be accessed?
What is the difference between int and integer in java?
Tell me the Importent classes in net package?
Explain illegalmonitorstateexception and when it will be thrown?
What is meant by final class?
What is the difference between variable & constant?
Why generics are used in java?
What are instance variables?
Write a factorial program using recursion in java?
What are the different ways to handle exceptions?
What is boolean query?
What are the 8 data types in java?
What is 16 bits called?
How do you sort an array in java?