how to print each alphabet of a string in java code example Example: print a letter in java System.out.println(name.substring(1, Math.min(name.length(), 4)));