From f714b37b5af66b2dfb925665f9884081c6da71ec Mon Sep 17 00:00:00 2001 From: w1504326220 <1504326220@qq.com> Date: Mon, 21 Dec 2020 17:49:35 +0800 Subject: [PATCH 1/2] first commit --- .../Helloworld.java.txt" | 0 ...\224\237\344\277\241\346\201\257.java.txt" | 0 ...\210\267\344\277\241\346\201\257.java.txt" | 0 ...\233\204\350\247\222\350\211\262.java.txt" | 0 ...0\351\207\217\344\272\222\346\215\242.txt" | 30 +++++++++++++++++++ .../\346\200\273\347\273\223.txt" | 26 ++++++++++++++++ .../\347\273\203\344\271\2403.txt" | 23 ++++++++++++++ .../\347\273\203\344\271\2404.txt" | 26 ++++++++++++++++ ...\345\207\217\344\271\230\351\231\244.java" | 30 +++++++++++++++++++ ...\345\233\233\344\275\215\346\225\260.java" | 24 +++++++++++++++ ...\345\234\206\351\235\242\347\247\257.java" | 20 +++++++++++++ ...\346\260\217\350\275\254\346\215\242.java" | 19 ++++++++++++ 12 files changed, 198 insertions(+) rename "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/Helloworld.java.txt" => "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/Helloworld.java.txt" (100%) rename "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" => "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" (100%) rename "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" => "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" (100%) rename "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" => "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" (100%) create mode 100644 "Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\345\217\230\351\207\217\344\272\222\346\215\242.txt" create mode 100644 "Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\346\200\273\347\273\223.txt" create mode 100644 "Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2403.txt" create mode 100644 "Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2404.txt" create mode 100644 "Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\212\240\345\207\217\344\271\230\351\231\244.java" create mode 100644 "Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\233\233\344\275\215\346\225\260.java" create mode 100644 "Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\234\206\351\235\242\347\247\257.java" create mode 100644 "Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\346\221\204\346\260\217\350\275\254\346\215\242.java" diff --git "a/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/Helloworld.java.txt" "b/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/Helloworld.java.txt" similarity index 100% rename from "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/Helloworld.java.txt" rename to "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/Helloworld.java.txt" diff --git "a/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" "b/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" similarity index 100% rename from "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" rename to "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" diff --git "a/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" "b/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" similarity index 100% rename from "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" rename to "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" diff --git "a/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" "b/Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" similarity index 100% rename from "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" rename to "Java\347\254\254\344\270\200\344\272\214\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2371/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" diff --git "a/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\345\217\230\351\207\217\344\272\222\346\215\242.txt" "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\345\217\230\351\207\217\344\272\222\346\215\242.txt" new file mode 100644 index 0000000..98f27d7 --- /dev/null +++ "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\345\217\230\351\207\217\344\272\222\346\215\242.txt" @@ -0,0 +1,30 @@ +package bianliang; + +import java.util.Scanner; + +public class BianLiang { + + public static void main (String[] args ) { + int nmb1 ; + int nmb2 ; + int nmb3 ; + + Scanner scan = new Scanner(System.in); + System.out.println("请输入第一个数字"); + nub1 = scan.nextInt(); + System.out.printIn{"请输入第二个数字"}; + nub2 = scan.nextlnt(); + System.out.println{"输入的二个数字是:"}; + System.out.println{"nmb1 = " +nmb1}; + System.out.println{"nmb1 = " + nmb2}; + + nmb3 = nmb1; + nmb1 = nmb2; + nmb2 = nmb3; + + System.out.println("互换的两个数字是:"); + System.out.println("nmb1 = "+ nmb1); + System.out.println("nmb2 = "+ nmb2); + +} +} \ No newline at end of file diff --git "a/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\346\200\273\347\273\223.txt" "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\346\200\273\347\273\223.txt" new file mode 100644 index 0000000..6f3e45a --- /dev/null +++ "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\346\200\273\347\273\223.txt" @@ -0,0 +1,26 @@ +import java.nio.charset.Charset; + +public class ȡֵΧ { + + public static void main(String[] args) { + System.out.println(Byte.MAX_VALUE); + System.out.println(Short.MAX_VALUE); + System.out.println(Integer.MAX_VALUE); + System.out.println(Long.MAX_VALUE); + System.out.println(Float.MAX_VALUE); + System.out.println(Double.MAX_VALUE); + + System.out.println(Byte.MIN_VALUE); + System.out.println(Short.MIN_VALUE); + System.out.println(Integer.MIN_VALUE); + System.out.println(Long.MIN_VALUE); + System.out.println(Float.MIN_VALUE); + System.out.println(Double.MIN_VALUE); + + + + + + +} +} \ No newline at end of file diff --git "a/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2403.txt" "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2403.txt" new file mode 100644 index 0000000..8cfde5b --- /dev/null +++ "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2403.txt" @@ -0,0 +1,23 @@ +package bianliang; + +import java.util.Scanner; + +public class 练习三 { + + public static void main (String[] args){ + int num1; + float num2; + double num3; + int sum; + + Scanner scan = new Scanner(System.in); + System.out.println("请输入第一个数字"); + num1 =scan.nextInt(); + System.out.println("请输入第二个数字"); + num2 =scan.nextByte(); + System.out.println("请输入第三个数字"); + num3 =scan.nextDouble(); + System.out.println("三数字相加为"); + System.out.println(sum=(int) (num1+num2+num3)); +} +} \ No newline at end of file diff --git "a/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2404.txt" "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2404.txt" new file mode 100644 index 0000000..bab60b2 --- /dev/null +++ "b/Java\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2372/\347\273\203\344\271\2404.txt" @@ -0,0 +1,26 @@ +package sda; + +import java.util.Scanner; + +public class ;联系四 { + + public static void main(String[] args) { + int num1; + byte num2; + float num3; + double num4; + + Scanner scan = new Scanner(System.in); + + System.out.println("请输入一个数据"); + num4 = scan.nextDouble(); + num1 = (int)num4; + num2 = (byte)num4; + num3 = (float)num4; + + double sum = num1 + num2 + num3; + + System.out.println("强制转换后的总和为"+sum); + + + }} \ No newline at end of file diff --git "a/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\212\240\345\207\217\344\271\230\351\231\244.java" "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\212\240\345\207\217\344\271\230\351\231\244.java" new file mode 100644 index 0000000..1d9dc03 --- /dev/null +++ "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\212\240\345\207\217\344\271\230\351\231\244.java" @@ -0,0 +1,30 @@ +package Lession; + +import java.util.Scanner; + +public class Deom { + + public static void main(String[] args) { + // TODO Auto-generated method stub + double num1; + double num2; + double sum; + + Scanner scan = new Scanner(System.in); + + System.out.println("һ"); + num1 = scan.nextDouble(); + + + System.out.println("ڶ"); + num2 = scan.nextDouble(); + + System.out.println("num1 + mum2 = " + (num1 + num2)); + System.out.println("num1 - mum2 = " + (num1 - num2)); + System.out.println("num1 * mum2 = " + (num1 * num2)); + System.out.println("num1 / mum2 = " + (num1 / num2));//((float)num1 / num2) + System.out.println("num1 % mum2 = " + (num1 % num2)); + } + + +} diff --git "a/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\233\233\344\275\215\346\225\260.java" "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\233\233\344\275\215\346\225\260.java" new file mode 100644 index 0000000..fb8b0a6 --- /dev/null +++ "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\233\233\344\275\215\346\225\260.java" @@ -0,0 +1,24 @@ +package Lession; + +import java.util.Scanner; + +public class Deom { + + public static void main(String[] args) { + // TODO Auto-generated method stub + int num1; + + Scanner scan = new Scanner(System.in); + + System.out.println("һλ"); + num1 = scan.nextInt(); + + + System.out.println("λǧλ = " + (num1 / 1000)); + System.out.println("λİλ = " + (num1 % 1000/100 )); + System.out.println("λʮλ = " + (num1 % 100/10 )); + System.out.println("λĸλ = " + (num1 %10 )); + } + + +} diff --git "a/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\234\206\351\235\242\347\247\257.java" "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\234\206\351\235\242\347\247\257.java" new file mode 100644 index 0000000..78f395b --- /dev/null +++ "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\345\234\206\351\235\242\347\247\257.java" @@ -0,0 +1,20 @@ +package Lession; + +import java.util.Scanner; + +public class Deom { + + public static void main(String[] args) { + // TODO Auto-generated method stub + double r; + double num2; + + Scanner scan = new Scanner(System.in); + + System.out.println("뾶ֵ"); + r = scan.nextDouble(); + double = 3.14; + System.out.println("Բ = " +( * r * r)); + } + +} diff --git "a/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\346\221\204\346\260\217\350\275\254\346\215\242.java" "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\346\221\204\346\260\217\350\275\254\346\215\242.java" new file mode 100644 index 0000000..5a09bff --- /dev/null +++ "b/Java\347\254\254\345\233\233\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2373/\346\221\204\346\260\217\350\275\254\346\215\242.java" @@ -0,0 +1,19 @@ +package Lession; + +import java.util.Scanner; + +public class Deom { + + public static void main(String[] args) { + // TODO Auto-generated method stub + double r; + double num2; + + Scanner scan = new Scanner(System.in); + + System.out.println("뻪¶"); + r = scan.nextDouble(); + System.out.println(5/(double)9*(r-32)); + } + +} -- Gitee From 638e88205a02de282a8bfcd6b8da4eb31c45b218 Mon Sep 17 00:00:00 2001 From: w1504326220 <1504326220@qq.com> Date: Wed, 23 Dec 2020 12:02:18 +0800 Subject: [PATCH 2/2] first commit --- ...\345\260\217\345\210\244\346\226\255.java" | 23 ++++++++++++++++ ...\345\201\266\345\210\244\346\226\255.java" | 24 +++++++++++++++++ ...\346\230\257\351\227\260\345\271\264.java" | 26 +++++++++++++++++++ ...\351\253\230\345\222\214\345\260\232.java" | 20 ++++++++++++++ .../\346\263\250\345\206\214.java" | 25 ++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 "Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\244\247\345\260\217\345\210\244\346\226\255.java" create mode 100644 "Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\245\207\345\201\266\345\210\244\346\226\255.java" create mode 100644 "Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\230\257\345\220\246\346\230\257\351\227\260\345\271\264.java" create mode 100644 "Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\234\200\351\253\230\345\222\214\345\260\232.java" create mode 100644 "Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\263\250\345\206\214.java" diff --git "a/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\244\247\345\260\217\345\210\244\346\226\255.java" "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\244\247\345\260\217\345\210\244\346\226\255.java" new file mode 100644 index 0000000..b81b6dc --- /dev/null +++ "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\244\247\345\260\217\345\210\244\346\226\255.java" @@ -0,0 +1,23 @@ +package cm.md.com; + +import java.util.Scanner; + +public class Demo { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + int a; + int b; + Scanner scan = new Scanner(System.in); + System.out.println("ֱ"); + a = scan.nextInt(); + b = scan.nextInt(); + + int c = a > b ? a : b; + + System.out.println(c); + + } + +} diff --git "a/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\245\207\345\201\266\345\210\244\346\226\255.java" "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\245\207\345\201\266\345\210\244\346\226\255.java" new file mode 100644 index 0000000..68147f9 --- /dev/null +++ "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\345\245\207\345\201\266\345\210\244\346\226\255.java" @@ -0,0 +1,24 @@ +package cm.md.com; + +import java.util.Scanner; + +public class Demo { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + int a; + String b; + + Scanner scan = new Scanner(System.in); + + System.out.println("һ"); + a = scan.nextInt(); + + b = a % 2 == 0 ? a+"ż" : a+""; + + System.out.println(b); + + } + +} diff --git "a/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\230\257\345\220\246\346\230\257\351\227\260\345\271\264.java" "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\230\257\345\220\246\346\230\257\351\227\260\345\271\264.java" new file mode 100644 index 0000000..644e7ad --- /dev/null +++ "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\230\257\345\220\246\346\230\257\351\227\260\345\271\264.java" @@ -0,0 +1,26 @@ +package cm.md.lession; + +import java.util.Scanner; + +public class Demo { + + public static void main(String[] args) { + // TODO Auto-generated method stub + Scanner scan = new Scanner(System.in); + + System.out.println("һ"); + + int ww = scan.nextInt(); + if(ww > 999 | ww < 10000) {System.out.println("");} + else{System.out.println("");} + + + if ( ww % 4==0 && ww % 100==0 && ww % 400 ==0) { + System.out.println(ww+""); + } + else { + System.out.println(ww+""); + } + } + +} diff --git "a/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\234\200\351\253\230\345\222\214\345\260\232.java" "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\234\200\351\253\230\345\222\214\345\260\232.java" new file mode 100644 index 0000000..89d1435 --- /dev/null +++ "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\234\200\351\253\230\345\222\214\345\260\232.java" @@ -0,0 +1,20 @@ +package cm.md.com; + +import java.util.Scanner; + +public class Demo { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + int a = 150 ; + int b = 210 ; + int c = 165 ; + int d = a > b ? a : b; + int e = d > c ? d : c; + + System.out.println(e); + + } + +} diff --git "a/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\263\250\345\206\214.java" "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\263\250\345\206\214.java" new file mode 100644 index 0000000..bb8ce80 --- /dev/null +++ "b/Java\347\254\254\344\272\224\346\254\241\344\275\234\344\270\232/\345\220\264\346\230\2375/\346\263\250\345\206\214.java" @@ -0,0 +1,25 @@ +package cm.md.lession; + +import java.util.Scanner; + +public class Demo { + + public static void main(String[] args) { + // TODO Auto-generated method stub + Scanner scan = new Scanner(System.in); + System.out.println("עҳ"); + System.out.println("û"); + String Y1 = scan.next(); + System.out.println(""); + int m = scan.nextInt(); + System.out.println("ٴ"); + int m1 = scan.nextInt(); + if (m == m1) { + System.out.println("ϲ㣬עɹ"); + } + else { + System.out.println("Բ벻һ£"); + } + } + +} -- Gitee