15 lines
308 B
Java
15 lines
308 B
Java
|
import java.util.Arrays;
|
||
|
|
||
|
public class Aufgabe5 {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
int[] a = { 1, 2 };
|
||
|
int[] b = { 1, 2 };
|
||
|
if(Arrays.equals(a, b)){
|
||
|
System.out.println("Gleich !");
|
||
|
}else{
|
||
|
System.out.println("Ungleich !");
|
||
|
}
|
||
|
}
|
||
|
}
|