import java.util.*;
//Error is herepublic class BATTLE{ public static void main (String[]args) { Scanner Name = new Scanner (System.in); System.out.println ("Another trainer is issuing a challenge!"); System.out.println ("Zebstrika appeared."); System.out.println ("Which Pokemon do you choose?"); System.out.print ("You chose "); String PokemonName = Name.next (); System.out.println ("Itb
your using online GDB compiler for java stored as a mainfile has main.java. but you give the class name with public modifier get error. Because it get file name Battle.java.
System.out.println ("Itb");
public static void main (String []args)