Want to find the output as given bellow using Java program? Input - are you ready; output - ArE YoU ReAdY : import java.util.Scanner;    import java.lang.*;    public class Testdemo{
   
        public static void main(String []args){
            Scanner sc = new Scanner(System.in);
            String result = "";
           System.out.println("enter the string");
           String name =sc.nextLine();
        String[] words = name.split("\\s");
        for(int i=0;i<words.length;i++){
            String med = words[i];
            for(int j=0;j<med.length;j++){
            if(i%2 == 0){
                result = result + Character.toUpperCase(words[i].charAt(0)) +     words[i].substring(1)    + " ";
            }
            else{
            result = result + Character.toLowerCase(words[i].charAt(0)) + words[i].substring(1) + "    ";
    }}
        }
        System.out.println(result);
        }    }