摘要:
Random rand = new Random(); String[] ArithmeticSign = { "+", "-", "" }; for(int n = 0;n<10;n++) { while (true) { String num = "1"; for (int i = 2; i < 阅读全文
摘要:
Scanner sc = new Scanner(System.in); int size = sc.nextInt(); /** * 由于菱形的对角线是菱形的对称轴所以菱形的行数一定是奇数,所以输入偶数时需要加1或减1处理使其变为奇数 */ if (size % 2 != 0) { for (in 阅读全文
摘要:
public static void main(String[] args) { String str = "java14jdk8baidu404我的博客"; Pattern p = Pattern.compile("\\d+"); Matcher m = p.matcher(str); int s 阅读全文
摘要:
static int rows = 0; static int num = 0; public static void main(String[] args) { show(new File(file)); System.out.println("共" + num + "个java文件,共" + r 阅读全文