摘要: //string s1 = Console.ReadLine(); //int n1 = Convert.ToInt32(s1); //string s2 = Console.ReadLine(); //int n2 = Convert.ToInt32(s2); //int t... 阅读全文
posted @ 2018-10-02 00:07 java使我快乐 阅读(107) 评论(0) 推荐(0) 编辑
摘要: int b=(int)10.2;//双精度强制转换整型强制类型转换 double a=10;//双精度类型 int c=(int)a;// int before=20; double rise=9.8; double now=before+(int)rise; System.out.... 阅读全文
posted @ 2018-09-26 13:20 java使我快乐 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 关于我们 baioti 、、构建表格:table、tr、td标签都是双标记标签,table嵌套tr,tr嵌套td,table标签用来创建表格,tr表示表格的一行,td表示一个单元格。 --> 11 12 11 12 11 12 ... 阅读全文
posted @ 2018-09-20 18:03 java使我快乐 阅读(6578) 评论(0) 推荐(0) 编辑
摘要: double b=Math.sqrt(2);//sqrt开根 System.out.println(b); System.out.println(Math.abs(-2));//abs绝对值 int d=-2; System.out.println(Math.abs(d));//同样的结果不同的方法 阅读全文
posted @ 2018-09-19 13:20 java使我快乐 阅读(162) 评论(0) 推荐(0) 编辑
摘要: public class zz { static int a =66;//static是静态变量 public static void main(String[] args) { int a=5;//定义整形变量 也是局部变量。 System.out.print("你如安好便是晴天\n");//\n是换行的意思。print后面加ln也是换行 System.out... 阅读全文
posted @ 2018-09-19 13:04 java使我快乐 阅读(472) 评论(0) 推荐(0) 编辑
摘要: final double PI=3.14;//定义常亮,小数类型 int a=5;//整数类型 char b='x';//字符类型 string c="撒旦";//字符串类型 阅读全文
posted @ 2018-09-12 13:10 java使我快乐 阅读(201) 评论(0) 推荐(0) 编辑