-
字符串数组
public class test {
public static void main(String[] args) {
String[][] str = {{“a”,“b”}, {“v”, “g”}, {“h”, “l”}};
System.out.println(“a:”+str[1][1]);
}
}
-
编写单个字母数组
char[] matrix = new char[]{‘A’,‘B’,‘C’,‘E’,‘S’,‘F’,‘C’,‘S’,‘A’,‘D’,‘E’,‘E’};
-
长度
a.length -
调用函数
// 用solution
public static void main(String[] args) {
char[] matrix = new char[]{‘A’,‘B’,‘C’,‘E’,‘S’,‘F’,‘C’,‘S’,‘A’,‘D’,‘E’,‘E’};
char[] str = new char[]{‘A’,‘B’,‘C’,‘C’,‘E’,‘D’};
test solution = new test();
System.out.println("result "+solution.hasPath(matrix,3,4,str));
}
-
调试
给新手小白的Eclipse调试教程_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili
https://www.bilibili.com/video/BV1g7411Q7nZ?from=search&seid=6775483034528084891