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
What is arrays fill in java?
How we can generate random numbers in java?
What are data types in oop?
What are three types of loops in java?
How many bits is a word?
What is class forname used for?
how to create constants in java?
What is static import?
Do I need java on my computer?
What is java oops?
What is the maximum size of arraylist in java?
Can list have duplicates in java?
What is the difference between access specifiers and access modifiers in java?
Explain the usage of this with constructors?
What is the purpose class.forname method?