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 does @param args mean in java?

1113


If a method is declared as protected, where may the method be accessed?

1066


What is the difference between int and integer in java?

1081


Tell me the Importent classes in net package?

2039


Explain illegalmonitorstateexception and when it will be thrown?

1155


What is meant by final class?

1182


What is the difference between variable & constant?

1089


Why generics are used in java?

1094


What are instance variables?

1125


Write a factorial program using recursion in java?

1087


What are the different ways to handle exceptions?

1046


What is boolean query?

1037


What are the 8 data types in java?

1043


What is 16 bits called?

986


How do you sort an array in java?

1045