MCQ Test
Previous Year Papers
Practice Questions
Video Courses
About
MCQ Test
Previous Year Papers
Practice Questions
Video Courses
About
Home
Practice
CORE JAVA PROGRAMMING
OBJECT ORIENTED PROGRAMMING
Problem #492
Problem #492
CORE JAVA PROGRAMMING
Write a Java program to create class called "TrafficLight" with attributes for color and duration, and methods to change the color and check for red or green.
Your Solution
Submit Solution
Reset