HTML & JS
/*package whatever //do not write package name here */

import java.util.*;

class GFG {
	public static void main (String[] args) {
		  Scanner input = new Scanner(System.in);
    while(true){
  System.out.println("Enter a word");
  String word = input.nextLine();

  byte [] arr = word.getBytes();
  byte [] result = new byte[arr.length];

  //complete the code starting from here
  }
  }
}
	}
}

Generated URL:

Compile Errors :

prog.java:19: error: class, interface, or enum expected
	}
	^
1 error

Output:

No Output
Report Bug