摘要: public class DemoScannerSum { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("请输入第一个数字:"); int a=sc.ne 阅读全文
posted @ 2021-01-13 20:53 wangchw 阅读(874) 评论(0) 推荐(0) 编辑
摘要: public class DemoScanner { public static void main(String[] args) { //创建方法 Scanner sc=new Scanner(System.in); //获取输入的数字 int num= sc.nextInt(); System. 阅读全文
posted @ 2021-01-13 20:47 wangchw 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 模棱两可的映射 具体原因是同一个路径写了两个或者多个,解决方法把重复的路径修改了,不要让路径重复。 阅读全文
posted @ 2021-01-13 14:28 wangchw 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 在web.xml文件中配置编码过滤器 <!--编码过滤器--> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEnco 阅读全文
posted @ 2021-01-13 14:21 wangchw 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1 public class Array{ 2 public static void main(String[] args){ 3 int[] array={1,2,3,4,5}; 4 for(int i=0;i<array.length;i++){ 5 System.out.println(arr 阅读全文
posted @ 2021-01-07 09:26 wangchw 阅读(912) 评论(0) 推荐(0) 编辑
摘要: public class Demo05 { public static void main(String[] args) { int[] array = {10, 20, 30}; //调用方法 int max = getMax(array); System.out.println(max); } 阅读全文
posted @ 2021-01-06 21:38 wangchw 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 1 //输出最大值 2 int[] num = {1, 2, 3, 4, 5, 1000, 1000000}; 3 int cc = num.length; 4 int max = num[0]; 5 for (int i = 1; i < cc; i++) { 6 if (num[i] > max 阅读全文
posted @ 2021-01-05 21:04 wangchw 阅读(774) 评论(0) 推荐(0) 编辑
摘要: idea版本2020.3 第一步打开设置 第二步 阅读全文
posted @ 2020-12-24 16:47 wangchw 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 再配置文件中加上这个配置就好了 Ddruid.mysql.usePingMethod=false 阅读全文
posted @ 2020-12-22 19:46 wangchw 阅读(7265) 评论(0) 推荐(0) 编辑
摘要: 信息发送 import java.io.*;import java.net.ServerSocket;import java.net.Socket;import java.util.Scanner; public class May { public static void main(String[ 阅读全文
posted @ 2020-10-17 16:10 wangchw 阅读(183) 评论(0) 推荐(0) 编辑