Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why is string buffer better than string ?

1132


Which software is used for java programming?

1027


Explain the JDB in depth & command line.

1017


What is an inner class in java?

970


Explain the difference between runnable and callable interface in java?

1056


What is the use of :: in java?

1015


Can a string be null?

990


What is a buffer in java?

1036


What is the buffer limit?

1030


What is treemap in java?

950


Will the jvm load the package twice at runtime?

1101


Is it possible to override private or static method in java?

996


Can you access non static variable in static context?

1047


What is the purpose of stub and skeleton?

1034


What are identifiers in java?

1129