└── Using if /Using if: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.*; 3 | 4 | public class Solution { 5 | 6 | public static void main(String[] args) { 7 | Scanner s=new Scanner(System.in); 8 | String sc=s.nextLine(); 9 | if(sc.equals("BLUE")){ 10 | System.out.println("The Chromatic Horizon whispers: It is Dawn"); 11 | } 12 | else if(sc.equals("RED")){ 13 | System.out.println("The Chromatic Horizon reveals: It is Dusk"); 14 | } 15 | else{ 16 | System.out.println("The Chromatic Riddle unfolds: Invalid Input"); 17 | } 18 | /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ 19 | } 20 | } 21 | --------------------------------------------------------------------------------