# Search:

Type: Posts; User: Potat

1. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

Yeah that would serve the same function. Regardless, it wouldn't be using just nested if statements. It's okay. I'll figure it out. Thanks for the help!
2. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

You're saying to do this:

for (int count = 0; count < stringLength; count++)
{
if...
3. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

Yes, that should work, but how would I go about doing that?
4. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

Yes, we can do that.
5. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

Yep this is exactly what the assignment is to do.
6. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

I think you're talking about the "compareToIgnoreCase" method, but I still don't know how to incorporate it into the nested If statements to get the number of vowels. If I was allowed to use chained...
7. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Re: Using a Loop and Nested Ifs to Count Number of Vowels in a String

I'm assuming we can use everything else, but my professor specifically said not to use compound conditions or chained if statements. Yes, we can use other Strings that hold reference data, this is...
8. ## Thread: Using a Loop and Nested Ifs to Count Number of Vowels in a String

by Potat
Replies
17
Views
1,405

### Using a Loop and Nested Ifs to Count Number of Vowels in a String

Hey there, I need some advice on how to complete some code. The code needs to take an inputted string from the user, then print out the number of vowels in the string. The challenge here is that I'm...
9. ## Thread: Using scanner and if/else statement to draw one of two graphics.

by Potat
Replies
3
Views
499

### [SOLVED] Re: Using scanner and if/else statement to draw one of two graphics.

Thank you gentlemen, I appreciate your brilliance and time. I finished it and the code is here:

import javax.swing.JApplet;
import java.awt.Color;
import java.awt.Graphics;
import...
10. ## Thread: Using scanner and if/else statement to draw one of two graphics.

by Potat
Replies
3
Views
499

### [SOLVED] Using scanner and if/else statement to draw one of two graphics.

Hey there, I have a homework problem for us to solve. I have to make a program for my introductory programming course that displays either one picture (a "wild face") or another (a "happy face") when...
Results 1 to 10 of 10