Looking for Course 5716 test answers and solutions? Browse our comprehensive collection of verified answers for Course 5716 at moodle.hftm.ch.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Welche Ausgabe erzeugt der folgende Code?
public class Aufgabe3 {
public static void main(String[] args) {
int dividend = 4;
int divisor = dividend - 4;
System.out.println(dividend / divisor);
}
}
Welche Ausgabe wird mit dem folgenden Code erzeugt, wenn in der Konsole "Java" (ohne Anführungszeichen) eingegeben wird?
public class Aufgabe11 {
static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
System.out.print("Eingabe: ");
String eingabe = scanner.next();
for (int i = 0; i < eingabe.length(); i++) {
System.out.println(eingabe.charAt(i));
}
}
}