Originally Posted by
Norm
Sorry that is not a class. That is a few lines of code.
Can you put that code in a method that is in a class with a main method so that the code can be compiled and executed?
i am required to build a class named Time1 and than run the test class on the Time 1 class to see its compiling without errors
public class Time1StudentTester
{
public static void main(String [] args) {
System.out.println("\n********** Test Time1 - Started **********\n");
System.out.println("\n1. Testing Constructors and toString:");
Time1 t1 = new Time1(17, 45);
System.out.println("\tt1=" + t1);
Time1 t2 = new Time1(t1);
System.out.println("\tt2=" + t2);
i only need to build for now this part of the final output