随笔分类 -  Java学习

摘要:public class printf的用法 { public static void main(String[] args){ //定义一些变量,用来格式化输出。 double d = 345.678; String s = "你好!"; int i = 1234; System.out.prin 阅读全文
posted @ 2021-04-04 15:29 符瑾瑜 阅读(276) 评论(0) 推荐(0)
摘要:public class Math { public static void main(String[] args){// Math.abs(n):对int、long、float、double类型的数取绝对值// 其中 int 类型的数取值范围是 -2^31——2^31-1(-2147483648 阅读全文
posted @ 2021-04-04 15:27 符瑾瑜 阅读(202) 评论(0) 推荐(0)