- Response Area Organize Answer Blocks In The Proper Order 1 2 Red Yellow And Green Light 3 Author First And La 1 (88.19 KiB) Viewed 30 times
RESPONSE AREA Organize answer blocks in the proper order: 1 - /** 2 Red, yellow, and green light 3* @author First and la
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
RESPONSE AREA Organize answer blocks in the proper order: 1 - /** 2 Red, yellow, and green light 3* @author First and la
RESPONSE AREA Organize answer blocks in the proper order: 1 - /** 2 Red, yellow, and green light 3* @author First and last name - 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ANSWER BANK Move the necessary blocks over into the response area: }else{ ⠀ }else if(lightColor.equals("yellow")) { if(lightColor.equals("green")) { System.out.println("Car is stopped"); if(speed > 60) { int speed kb.nextInt (); System.out.println("Stay alert and be safe"); System.out.println("Stay alert and be safe"); ⠀ ⠀ ⠀ # ⠀ public static void main(String[] args) { boolean carIsInMotion = false; if (carIsInMotion && speed > 60) { ⠀ } import java.util.Scanner; ⠀ } String lightColor = kb.next(); ⠀ } carIsInMotion = true; public class Class1 { Scanner kb new Scanner(System.in); ⠀ System.out.println("Car is slowing down"); } # carIsInMotion = true; System.out.println("Car is moving"); ▼