Basic Built-in Methods
Anatomy of a Method
Example: System.out.println("Hello, World!")
System.out.println("Hello, World!")Math Methods
double a = 10.3;
double b = 10.5;
double c = 10.6;
System.out.println(Math.round(a)); // Outputs: 10
System.out.println(Math.round(b)); // Outputs: 11
System.out.println(Math.round(c)); // Outputs: 11Basic String Methods
Last updated