Here i am getting this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
public static void main(String[] args) {
    Scanner keyboard  = new Scanner(System.in);
    String input = keyboard.nextLine();
    System.out.println(input);
    while(true){
        if(args[0].equals("k")){
            System.out.println("k");
        }
    }
}
 
     
     
     
     
    