rendered paste bodypublic class Attack { public int getDamage(){ return(0); } public String getMessage(){ return("Ataque"); }}public class Punch extends Attack{ int Combo; Punch(int a){ this.Combo=a; } public int getDamage(){ return(8); } public String getMessage(){ return("Punch"); }}import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;class Smash {static void prt(String s){ System.out.println(s);}public static void ExtraeDatos(String Datos){ StringTokenizer Tokens = new StringTokenizer(Datos," "); int count=Tokens.countTokens(); int i=0; String[] toks = new String[count]; while(Tokens.hasMoreTokens()){ toks[i]=Tokens.nextToken(); i=i+1; } String Nombre = toks[0]; switch(Integer.parseInt(toks[1])){ case 0: Attack Ataque = new Punch(Integer.parseInt(toks[1])); break; } prt(Nombre); prt(Ataque.getMessage());}public static void CapturaPeleadores(int N_Peleadores){ int i=0; try { BufferedReader get = new BufferedReader(new InputStreamReader(System.in)); String DatosPeleador=""; for(i=0;i<N_Peleadores;i++){ DatosPeleador=get.readLine(); ExtraeDatos(DatosPeleador); } }catch (IOException e){ e.printStackTrace(); }}public static void main( String args[] ){ try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String Peleadores = ""; while (Peleadores != null) { CapturaPeleadores(Integer.parseInt(in.readLine())); } } catch (IOException e) { e.printStackTrace(); }}}/*ERROR1. ERROR in Smash.java (at line 32) prt(Ataque.getMessage()); ^^^^^^Ataque cannot be resolved----------1 problem */