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 webdriver is an interface?

992


Explain about fail fast iterators in java?

1013


Is singleton set an interval?

898


How does split work in java?

984


How to connect to a remote database using Applet?

2478


How many threads can I run java?

1038


What is java lang object?

924


Can you inherit a constructor java?

1018


Why is method overloading not possible by changing the return type in java?

942


How to use arraylist in java netbeans?

974


What is the main method java?

967


what is heap memory?

1038


Variable of the boolean type is automatically initialized as?

959


Define linked list and its features with signature?

931


Explain the concept of hashtables?

1057