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 is the purpose of file class?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What are the important features of Java 10 release?
Why are lists ordered in java?
What is the method in java?
What is Java Shutdown Hook?
Why are pointers not secure?
What is get () in java?
what are the states associated in the thread? : Java thread
Can an interface have a constructor?
Is alive in java?
what is object slice?
How do you square a number in java?
What is the default value of the local variables?
Differentiate between array list and vector in java.