摘要:
参考链接/文档查询链接:https://www.w3cschool.cn/regexp/x9hf1pq9.html 参考链接/文档查询链接:https://www.runoob.com/java/java-regular-expressions.html 阅读全文
posted @ 2022-01-06 13:41
对月当歌
阅读(41)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextLine()) { 阅读全文
posted @ 2022-01-06 13:31
对月当歌
阅读(148)
评论(0)
推荐(0)
摘要:
一.DecimalFormat 00表示输出两个数字,不足则补0。 ##表示四舍五入保留两位小数,若最后一位为0,则舍弃。 float num1 = 3.1415916f; DecimalFormat df = new DecimalFormat("00.##");//保留两位小数 System.o 阅读全文
posted @ 2022-01-06 12:18
对月当歌
阅读(2613)
评论(0)
推荐(0)
摘要:
参考链接:https://blog.csdn.net/lenfranky/article/details/89639320 char类型 1.JAVA中,char占2字节,16位。可在存放汉字,char类型应ASCII表中,对应的字符。 2、char赋值 char a='a'; //任意单个字符,加 阅读全文
posted @ 2022-01-06 10:08
对月当歌
阅读(1546)
评论(0)
推荐(0)
浙公网安备 33010602011771号