Código Javascript:
Ver original
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class nose { private static final String Letra = null; public static void main(String[]args)throws IOException { String c; String a; int d; System.out.println("Digita tu nombre"); BufferedReader io=new BufferedReader (new InputStreamReader(System.in)); a=io.readLine(); for(int i=0;i<a.length();i++){ if(!Letra(a.charAt(i))){ System.out.println("Hacer algo"); return; } } System.out.println("Hacer otra cosa"); } private static boolean Letra(char charAt) { // TODO Auto-generated method stub return false; } }