1. Create a class StaticMethods. DO NOT add the main method to this class. Type in the method printJava as shown below. 5 public class StaticMethods 6. public static void printJava() {...


Hello, I need help


1. Create a class StaticMethods. DO NOT add the main method to this class. Type in the method<br>printJava as shown below.<br>5<br>public class StaticMethods<br>6.<br>public static void printJava()<br>{<br>System.out.println(

Extracted text: 1. Create a class StaticMethods. DO NOT add the main method to this class. Type in the method printJava as shown below. 5 public class StaticMethods 6. public static void printJava() { System.out.println( "Java"); } 7 8. 9. 10 2. From the main method of class Lab14, invoke (call) the method printJava as shown below. Does the call of StaticMethods.printJava(); remind you of calls such as Math.pow(x, 0.5) or Double.compare(x, y) ? This is how you can call static methods of another class( StaticMethods), from within a different class ( Lab14 ). package lab14; public class Lab14 1 3 4 public static void main(String[] args) 5 6 StaticMethods.printJava(); 3. Inside class StaticMethods, create the static method printMyName() , as shown below that prints your name one time. Call this method from within a for loop inside the main method of class Lab14 to print your name 100 times, 5 times per line. publicenceled static void printMyName() 12

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here