import java.util.Scanner; public class StandbyMode { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Standby Mode"); System.out.println("Press 1 for Standby mode"); System.out.println("Press 2 to disable"); int selectedOption = scanner.nextInt(); if(selectedOption == 1){ System.out.println("Standby mode is enabled"); }else { System.out.println("Standby Mode disabled"); } scanner.close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)