Explore various approaches to handling and processing unique characters.
Search Results for: print
Print the Default Value When Overriding toString() Method
Learn about overriding the toString() method and handling the potential null within.
PrintWriter write() vs print() Method in Java
Discover the differences between PrintWriter’s write() and print() methods.
Modify and Print List Items With Java Streams
Learn to modify or transform a Java list and print its new elements.
How to Pretty-Print a Map in Java
Learn different approaches for pretty-printing maps in Java.
Print a Java 2D Array
Learn about different ways to print a 2D array to the console in Java, along with their time and space complexity.
Printing Message on Console without Using main() Method in Java
Explore ways of printing messages without the main() method in Java.
Replace Non-Printable Unicode Characters in Java
Learn how to replace non-printable unicode characters in Java.
Print a Double Value Without Scientific Notation in Java
Explore multiple ways for avoiding scientific notation when printing double values in Java.
PrintWriter vs. FileWriter in Java
Learned the basic usage of FileWriter and PrintWriter with example code and understand their differences.
Pretty-Print a JSON in Java
Explore various methods for achieving pretty printing of JSON in Java.
Java PrintStream to String
This article provides several ways of converting a PrintStream to a String in Java.The approaches include using ByteArrayOutputStream, a custom output stream, and Apache Commons IO.
Print “” Quotes Around a String in Java
Explore three different approaches to printing a string with quotes (“) around it.
PrintStream vs PrintWriter in Java
A comparison between two classes to output content: PrintWriter and PrintStream, explaining the similarities and differences between them.
Java Program to Print Pascal’s Triangle
A quick and practical guide to implementing Pascal’s Triangle in Java.
Pretty-Print XML in Java
Learn two approaches to pretty-print an XML file in Java
Printing Thread Info in Log File Using Log4j2
Learn how to print thread info using Log4j2
Computing an X509 Certificate’s Thumbprint in Java
A quick and practical guide to computing an X509 certificate’s thumbprint in Java.
Unit Testing of System.out.println() with JUnit
Learn about approaches for testing System.out.println.
Print an Integer in Binary Format in Java
Explore different ways of printing an integer in binary format in Java.