Question 6 of 8 O of 3 points Question 6 Unlimited tries Write the definition of a classTelephone. The class has no cons
Posted: Sat May 14, 2022 3:11 pm
Question 6 of 8 O of 3 points Question 6 Unlimited tries Write the definition of a classTelephone. The class has no constructors and one static method printNumber. The method accepts a String argument and prints it on the screen. The method returns nothing. 1 class Telephone 2. { 3 public static void print Number (String s) 4 - { 5 System.out.println(s); 6 } 7 } 8 public class Main 9. { 10 Code Analysis: Compiler Error(s)