# Search:

Type: Posts; User: uEih

1. ## Thread: Spaces at the start of every other line in a for loop

by uEih
Replies
12
Views
227

### Re: Spaces at the start of every other line in a for loop

Yes but his code wasn't correct to begin with, from what the output proves that code is fine. Until the output is set to something else then that code is wrong. You're assuming that he wants it to...
2. ## Thread: Spaces at the start of every other line in a for loop

by uEih
Replies
12
Views
227

### Re: Spaces at the start of every other line in a for loop

Not at all, because the input was 4 and there's 5 A's. No where did it specify that you need the amount of A's from the input. The number input was simply for the amount of spaces and lines of A's, 4...
3. ## Thread: Spaces at the start of every other line in a for loop

by uEih
Replies
12
Views
227

### Re: Spaces at the start of every other line in a for loop

May I ask why? It's probably not the best way to do it but it works.
4. ## Thread: Spaces at the start of every other line in a for loop

by uEih
Replies
12
Views
227

### Re: Spaces at the start of every other line in a for loop

That code does apply the number of spaces on every other line. so it should work out to be the same. The code prints out the first set of lines while going to a new line. Then the spaces are added in...
5. ## Thread: AVL Tree help.

by uEih
Replies
0
Views
169

### AVL Tree help.

I just need some help figuring why I'm getting a NullPointerException where the "height" starts under the insert method. I posted the whole code before but some editing errors happened and if you...
6. ## Thread: Spaces at the start of every other line in a for loop

by uEih
Replies
12
Views
227

### Re: Spaces at the start of every other line in a for loop

Read the announcement to format correctly, but what you're doing wrong is printing the A's one by one, it seems the A's aren't affected by the input so you can print a whole line by itself. Here's...
Results 1 to 6 of 6