diff --git "a/12 \345\217\266\344\277\212\350\275\266/20230510 \345\274\202\345\270\270.md" "b/12 \345\217\266\344\277\212\350\275\266/20230510 \345\274\202\345\270\270.md" new file mode 100644 index 0000000000000000000000000000000000000000..fb38f9a280590cac8839b40cbc1acdb2d843675a --- /dev/null +++ "b/12 \345\217\266\344\277\212\350\275\266/20230510 \345\274\202\345\270\270.md" @@ -0,0 +1,21 @@ +```java +public class test { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + while (true) { + try { + int a= sc.nextInt(); + int b= sc.nextInt(); + sum(a,b); + break; + } catch (Exception e) { + System.out.println("不对"); + sc.next(); + } + } + } + public static int sum(int a,int b){ + return a+b; + } +} +```