fdai7766
1 year ago
1 changed files with 85 additions and 0 deletions
@ -0,0 +1,85 @@ |
|||
Übung 1 |
|||
Ohne Debug |
|||
input: 345, Schleifenvariable: 2, Ergebnis 1 |
|||
input: 345, Schleifenvariable: 3, Ergebnis 0 |
|||
number 345 passed check: false |
|||
|
|||
input: 5, Schleifenvariable: 2, Ergebnis 1 |
|||
input: 5, Schleifenvariable: 3, Ergebnis 2 |
|||
input: 5, Schleifenvariable: 4, Ergebnis 1 |
|||
number 5 passed check: true |
|||
|
|||
input: 57, Schleifenvariable: 2, Ergebnis 1 |
|||
input: 57, Schleifenvariable: 3, Ergebnis 0 |
|||
number 57 passed check: false |
|||
|
|||
|
|||
Mit Debug |
|||
input: 456, Schleifenvariable: 2, Ergebnis 0 |
|||
number 456 passed check: false |
|||
|
|||
Inhalt der Variablen mit 45 |
|||
nextInt: 45 |
|||
i: 2 |
|||
|
|||
nach resume |
|||
nextInt: 45 |
|||
i: 3 |
|||
|
|||
Inhalt der Variablen mit 47 |
|||
nextInt: 47 |
|||
i: 2 |
|||
|
|||
nach resume |
|||
nextInt: 47 |
|||
i: 3 |
|||
|
|||
nach resume |
|||
nextInt: 47 |
|||
i: 4 |
|||
|
|||
|
|||
Übung 2 |
|||
|
|||
Inhalt der Variablen mit 45 |
|||
nextInt 23 |
|||
|
|||
|
|||
Debug view |
|||
private boolean checkNumber(int nextInt) { nextInt = 23 |
|||
|
|||
nextInt = nextInt - (nextInt / count); nextInt = 23, count = 3 |
|||
count++; count = 3 |
|||
return checkNumber(nextInt); nextInt = 23 |
|||
} |
|||
|
|||
|
|||
|
|||
In welcher Zeile ist der Debugger ? step over |
|||
Zeile 40 |
|||
|
|||
Debug view |
|||
|
|||
private boolean checkNumber(int nextInt) { nextInt = 16 |
|||
|
|||
nextInt = nextInt - (nextInt / count); nextInt = 16, count = 4 |
|||
count++; count = 4 |
|||
return checkNumber(nextInt); nextInt = 16 |
|||
} |
|||
|
|||
|
|||
|
|||
In welcher Zeile ist der Debugger ? step into |
|||
Zeile 34 |
|||
|
|||
Debug view |
|||
|
|||
private boolean checkNumber(int nextInt) { nextInt = 23 |
|||
if (count > nextInt) count = 3, nextInt = 23 |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue