mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Added source files (Programmieren Tutorium)
This commit is contained in:
parent
1be8f17cc0
commit
ad81fa802b
244 changed files with 8252 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
public class QuizString {
|
||||
public static void main(String[] args) {
|
||||
String string1 = new String("Hallo");
|
||||
String string2 = new String("Hallo");
|
||||
if (string1 == string2) {
|
||||
System.out.println("string1 und string2 sind das selbe Objekt.");
|
||||
} else {
|
||||
System.out.println("string1 und string2 sind verschiedene Objekte.");
|
||||
}
|
||||
|
||||
String string3 = "Hallo";
|
||||
String string4 = "Hallo";
|
||||
if (string3 == string4) {
|
||||
System.out.println("string3 und string4 sind das selbe Objekt.");
|
||||
} else {
|
||||
System.out.println("string3 und string4 sind verschiedene Objekte.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue