用java判断字符串(自己设定字符串,不少于10个字符)第5个字符是否是数字。写出程序代码
用String类中的charAt()
System.out.println("abcdefg".charAt(5)>='0' &&"abcdefg".charAt(5)<='9');