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

What is the difference between keyword and identifier?

1023


Is hashmap thread safe?

986


What is remote method invocation (rmi)?

1060


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1010


What are the super most classes for all the streams?

2549


What are scriptlets?

1084


Name container classes in java programming?

1096


What is the difference between jdk and jre?

1061


What are java annotations?

1155


Can we serialize static variables in java?

1085


What is the common usage of serialization? What exceptions occur during serialization?

1115


What is default locale java?

1113


What does the append?

990


How can you set an applet’s height and width as a percentage?

928


What do you mean by Hash Map and Hash Table?

1088