logo

Crowdly

Browser

Add to Chrome

SEW2b 1xHIT String-Objekte und weitere Kontrollstrukturen

Looking for SEW2b 1xHIT String-Objekte und weitere Kontrollstrukturen test answers and solutions? Browse our comprehensive collection of verified answers for SEW2b 1xHIT String-Objekte und weitere Kontrollstrukturen at elearning.tgm.ac.at.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Gegeben ist folgende Deklaration:

1
String wort = "Ferien"

;

Welche Index-Nummer hat der Buchstabe n im Text der Variablen wort.

View this question

Gegeben ist die String-Variable namens satz. Schreibe die Anweisung, um das 6. Zeichen aus dieser Variablen in die Zeichen-Variable namens erg zu speichern. Beide Variablen sind deklariert und die Variable satz ist auch schon initialisiert.

View this question

Was wird bei folgendem Beispiel ausgegeben?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

/** ...

*/

public class

EinBeispiel {

public static void

main(String[] args) {

String s1 =

"YZ"

;

String s2 =

"XYZ"

;

String s3 =

"X"

+ s1;

if(s2.equals

(s3)) {

System.

out.println("Gleich"

);

}

else

{

System.

out.println("Ungleich"

);

}

}

}

0%
0%
0%
0%
0%
View this question

Welche der folgenden Aussagen treffen auf die folgenden lokalen Variablen s1 und s2 vom Typ String und die int-Variable x1 zu, wenn diese bereits deklariert und initialisiert sind.

0%
0%
0%
0%
View this question

Welche Eigenschaften gelten für den Datentyp String. Wähle alle aus.

0%
0%
0%
0%
View this question
View this question
View this question
View this question
View this question
View this question

Want instant access to all verified answers on elearning.tgm.ac.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome