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


Please Help Members By Posting Answers For Below Questions

List two java ide’s?

815


what is the purpose of using rmisecuritymanager in rmi?

766


Is age a discrete variable?

738


What is thread pool? How can we create thread pool in java?

841


What is the synonym of string?

780


Why does java have two ways to create child threads? Which way is better?

800


What is class and object in java?

760


What is included in core java?

818


Is 0 a real number?

787


What is reflexive association?

1355


What are the differences between getting and load method?

756


Which methods cannot be overridden in java?

755


What is primitive array?

686


How many arguments can be passed to main ()?

753


Is an array a vector?

744