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...

any other way to print the text without using
System.out.println() in java?

Answer Posted / srinivas

Using PrintWriter class-

PrintWriter writer = new PrintWriter(System.out);
writer.println("Method 2");



PrintWriter makes the output internationalizable - because encodings like UTF-8 can be specified.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you make a constructor final in Java?

1137


What is a parameter in matrices?

1055


What does localhost mean?

958


What is a condition in programming?

1014


How can u increase the heap size in the memory?

1021


What is the arraylist in java?

1058


What are the different types of collections in java?

962


How do you clear a method in java?

1012


Difference between static and dynamic class loading.

1129


What are the wrapped, classes?

1058


what is the purpose of "virtual"?

1087


State the difference between creating string as new () and literal.

1119


What is the purpose of finalization in java programming?

1028


What is difference between == equals () and compareto () method?

1051


Why set is used in java?

1022