Java tutorial
//package com.java2s; public class Main { public static boolean isAlpha(String name) { char[] chars = name.toCharArray(); for (char c : chars) { if (!Character.isLetter(c)) { return false; } } return true; } }