Title: Java Eclipse-Formatting 1
Description: This video illustrates the way Java formats data. We concentrate on integers, Booleans and doubles. We show the use of printf and format. For integers, we experiment with displaying data using %d, adding more space using %5d, and left aligning numbers using %-5d. we applied the same concept for doubles in addition to how we can round doubles to 2 decimal places.
Methodology: Good coding standards and object-oriented design.
Technologies: Java, object-oriented programming.
Examples constructed: We created a Demo class with a main method. In main, we experimented with different type of formatting for integers, boolean, and doubles.
Keywords: printf, format, main, int, double, boolean.