----------------------------------------------
1 public class Test {
2 public static void main(String[] args) {
3 String s1 = "Hello";
4 String s2 = "Hello";
5 String s3 = "Hello-hello";
6
7 System.out.println(s1 + " - " + s2
8 + " - " + s2.substring(0,5)
9 + " - " + s3.substring(0,5));
10 System.out.println("1. " + s1 == s2);
11 System.out.println("2. " + s1 == s2.substring(0,5));
12 System.out.println("3. " + s1 ==...
Was passiert in dem Programm?
Was passiert in dem Programm?
0 commentaires:
Enregistrer un commentaire