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

What is arrays fill in java?

958


How we can generate random numbers in java?

1093


What are data types in oop?

999


What are three types of loops in java?

1069


How many bits is a word?

960


What is class forname used for?

1009


how to create constants in java?

1045


What is static import?

1109


Do I need java on my computer?

930


What is java oops?

1011


What is the maximum size of arraylist in java?

957


Can list have duplicates in java?

870


What is the difference between access specifiers and access modifiers in java?

1111


Explain the usage of this with constructors?

985


What is the purpose class.forname method?

921