思考 ■从键盘任意输入一个单词,查找此单词在下面 句子中出行的次数? Shandong University of Technology dates its founding to 1956.Situated in Zibo,one of China's most historic cities and the cradle of the ancient Qi Culture,the University is distinctive for its science and engineering with the prioritized support from Shandong Province
思考 ◼从键盘任意输入一个单词,查找此单词在下面 句子中出行的次数? Shandong University of Technology dates its founding to 1956. Situated in Zibo, one of China’s most historic cities and the cradle of the ancient Qi Culture, the University is distinctive for its science and engineering with the prioritized support from Shandong Province
思考 ■ 统计某字符串中单词总数? Shandong University of Technology dates its founding to 1956.Situated in Zibo,one of China's most historic cities and the cradle of the ancient Qi Culture,the University is distinctive for its science and engineering with the prioritized support from Shandong Province
思考 ◼统计某字符串中单词总数? Shandong University of Technology dates its founding to 1956. Situated in Zibo, one of China’s most historic cities and the cradle of the ancient Qi Culture, the University is distinctive for its science and engineering with the prioritized support from Shandong Province
§9.1.2 String类的常用方法3 7.public String substring(int startpoint)):获得一个当前字符串的子串 其相关方法:substring(int start,int end) String tom="我喜欢篮球"; String s=tom.substring(1,3);那么s是:“喜欢”。 8.public String trim():得到一个s去掉前后空格后的字符串对象。 例9-3 Example9 3.java 13
13 §9.1.2 String 类的常用方法_3 7. public String substring(int startpoint):获得一个当前字符串的子串 其相关方法:substring(int start ,int end) String tom = " " ; String s = tom.substring(1,3); s 8.public String trim() :得到一个s去掉前后空格后的字符串对象。 例9-3 Example9_3.java
思考 ■从键盘任意输入一个身份证号,输出出生日期
思考 ◼从键盘任意输入一个身份证号,输出出生日期
思考 ■从下列字符串中提取电子邮箱地址? ●邮箱:wsq0533@163.c0m E-mail:wsq0533@163.com ●联系方式:wsq0533@163.com
思考 ◼从下列字符串中提取电子邮箱地址? ⚫邮箱:wsq0533@163.com ⚫E-mail:wsq0533@163.com ⚫联系方式:wsq0533@163.com