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
Can we pass a primitive type by reference in java? How
What is lossy conversion in java?
Is ++ operator thread-safe in java?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is java thread dump, how can we get java thread dump of a program?
What is flush () in java?
give an example for encapsulation?
What is the difference between java applets and applications?
what type of questions asked for barclays technologies pune please send urgent
How can I right-justify a string?
Difference between a process and a program?
What is command line argument
What is use of valueof () in java?
Can you call a method in a method?
Explain about the select method with an example?