Skip to content

Commit a4ca281

Browse files
committed
.
.
1 parent 31a3226 commit a4ca281

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

intelliJ/src/test/Main.java

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
package test;
22

3-
import java.util.Scanner;
4-
53
public class Main{
64
public static void main(String[] args) {
7-
int[] array = new int[3];
8-
int num;
9-
Scanner sc = new Scanner(System.in);
10-
System.out.println("num1: ");
11-
array[0] = sc.nextInt();
5+
int[] array = {};
6+
127

13-
System.out.println("num2");
14-
array[1] = sc.nextInt();
158

16-
array[2] = array[0] + array[1];
17-
System.out.println(array[0] + " + " + array[1] + " = " + array[2]);
9+
10+
int a = array.hashCode();
11+
System.out.println(a);
1812

13+
int[] a1 = {};
14+
int b = a1.hashCode();
1915

16+
int[] a2 = {};
17+
int h2 = a2.hashCode();
18+
System.out.println(h2);
2019

2120

2221
}

0 commit comments

Comments
 (0)