题解列表

筛选

(字符串).matches("表达式")的使用解题

摘要: ##注意! 本题使用的(字符串).matches("[0-9]"),不过只能判断一个字符位的字符串,**也就是"0"、"1"。并不能直接判断"01"**,所以我是用了 (""+charAt(下标……

大小写转换

摘要:解题思路:注意事项:参考代码:public class Main {public static void main(String[] args) { Scanner scanner=new Scann……

双重for循环进行求解

摘要:解题思路:定义一个空的字符串进行储存每次筛选出的素数,运用双重for循环进行筛选注意事项:参考代码:public class Main1 { public static void main(Str……

三层for循环+if判断

摘要:解题思路:注意事项:参考代码:public class Five { public static void main(String[] args) { int cock,hen,chicken; ……