Keeping popping the three same errors. The code can be found in the Java How to program Early Objects 11th edition textbook.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Keeping popping the three same errors. The code can be found in the Java How to program Early Objects 11th edition textbook.

Main.java
1
// Program written by Jacob Gostomski on the 20th of February 2023
2 // At FWB Campus
3 // Program displays Timel object used in an application
4
5
6-
7
8
9
10
11
12
13
14
15
16-
17
18
19-
20
21
22
23
24-
25
26
27
public class Time1 Test {
public static void main(String[] args) {
Time1 time = new Time1();
displayTime("After time object is created", time);
System.out.println();
}
time.setTime(13, 27, 6);
displayTime("After calling setTime", time);
System.out.println();
try{
time.setTime(99, 99, 99);
}
catch (IllegalArgumentException e) {
System.out.printf("Exception: %s %n%n", e.getMessage());
}
displayTime("After calling setTime with invalid values", time);
n
LJ
Run
}
private static void displayTime(String header, Time1 t) {
System.out.printf("%s %nUniversal time: %s %nStandard time: %s %n", header, t.toUniversal String(),
t.toString());
Output
javac /tmp/rckT41YrYa/Time1Test.java
/tmp/rckT41YrYa/Time1 Test.java:17: error: cannot find symbol
private static void displayTime(String header, Time1 t) {
symbol: class Time 1
location: class Time1 Test
A
/tmp/rckT41YrYa/Time1 Test.java:7: error: cannot find symbol
Time1 time = new Time1();
symbol: class Time 1
location: class Time1 Test
A
/tmp/rckT41YrYa/Time1 Test.java:7: error: cannot find symbol
Time1 time = new Time1();
A
symbol: class Time1
location: class Time1 Test
3 errors
Transcribed Image Text:Main.java 1 // Program written by Jacob Gostomski on the 20th of February 2023 2 // At FWB Campus 3 // Program displays Timel object used in an application 4 5 6- 7 8 9 10 11 12 13 14 15 16- 17 18 19- 20 21 22 23 24- 25 26 27 public class Time1 Test { public static void main(String[] args) { Time1 time = new Time1(); displayTime("After time object is created", time); System.out.println(); } time.setTime(13, 27, 6); displayTime("After calling setTime", time); System.out.println(); try{ time.setTime(99, 99, 99); } catch (IllegalArgumentException e) { System.out.printf("Exception: %s %n%n", e.getMessage()); } displayTime("After calling setTime with invalid values", time); n LJ Run } private static void displayTime(String header, Time1 t) { System.out.printf("%s %nUniversal time: %s %nStandard time: %s %n", header, t.toUniversal String(), t.toString()); Output javac /tmp/rckT41YrYa/Time1Test.java /tmp/rckT41YrYa/Time1 Test.java:17: error: cannot find symbol private static void displayTime(String header, Time1 t) { symbol: class Time 1 location: class Time1 Test A /tmp/rckT41YrYa/Time1 Test.java:7: error: cannot find symbol Time1 time = new Time1(); symbol: class Time 1 location: class Time1 Test A /tmp/rckT41YrYa/Time1 Test.java:7: error: cannot find symbol Time1 time = new Time1(); A symbol: class Time1 location: class Time1 Test 3 errors
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education