摘要:
``` java public class Demo { public static void main(String[] args) { for (int i = 1; i = i;j ){ System.out.print(" "); } for(int j = 1;j <= i;j++){ S 阅读全文
posted @ 2020-04-23 17:11
阿亮在努力
阅读(134)
评论(0)
推荐(0)
摘要:
``` java public class Demo04 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入小数:"); float 阅读全文
posted @ 2020-04-23 16:25
阿亮在努力
阅读(514)
评论(1)
推荐(0)
摘要:
Scanner对象 next() 和 nextLine() next(): 1.一定要读取到有效字符后才可以结束输入 2.对输入有效字符之前遇到的空白,next()方法会自动将其去掉 3.只有输入有效字符后才将其后面输入的空白作为分隔符或者结束符 4.next()不能得到带有空格的字 阅读全文
posted @ 2020-04-23 16:23
阿亮在努力
阅读(162)
评论(0)
推荐(0)
摘要:
位运算 java public class Demo02 { public static void main(String[] args) { / 位运算: &, |, ^, ~, , A = 0011 1100 B = 0000 1101 A&B = 0000 1100 都是1才是1,否则就是0 阅读全文
posted @ 2020-04-23 00:03
阿亮在努力
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号