- 博客(3)
- 收藏
- 关注
原创 Leecode-Java刷题笔记(2)
10.正则表达式 public boolean isMatch(String s, String p) { return match(s, p, 0, 0); } public boolean match(String s,String p, int i, int j){ if(i==s.length() && j==p.length()) { return true; }else if(
2020-06-20 16:24:15 150
原创 Leecode-Java刷题笔记(1)
leecode 227 中缀转化为后缀(不含括号版) //判断是否为数字 public static boolean isNum(String s){ for (int i=0;i<s.length();i++){ if(!Character.isDigit(s.charAt(i))){ return false; } } return true;
2020-06-13 18:26:26 174
原创 Scanner使用笔记
next(),nextLine()方法: 做记录用 来源:菜鸟教程 import java.util.Scanner; public class ScannerDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //next用法 //1、一定要读取到有...
2020-04-16 21:34:53 245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人