Java
文章平均质量分 71
Come to the Sunday
这个作者很懒,什么都没留下…
展开
-
输入一段字符串,统计其中字母、数字、空格等的个数
package test3;import java.util.HashMap;import java.util.Map.Entry;import java.util.Scanner;public class Count { public static void simpleCount(String str) { int i=0,count1=0,count2=0,count3=0,count4=0; while(i<str.length()) { if((str.charA原创 2020-12-29 11:46:48 · 6723 阅读 · 1 评论 -
Java输出99乘法表
package test2;public class multiplicationTable { public static void main(String args[]) { for(int i=1; i<10; i++) { for(int j=1; j<i+1; j++) { System.out.print(j + " x " + i + " = " + i*j + "\t"); } System.out.print("\n"); } }}原创 2020-12-25 14:25:05 · 223 阅读 · 0 评论