Search:
Type: Posts; User: bgroves85
Search:
Search took 0.02 seconds.
-
April 20th, 2011, 11:49 AM
Maybe as part of your mix() method you should saved the ordering of the puzzle in an array and when you want to restart the game, you can rearrange the board to reflect the state of the board after...
-
March 29th, 2011, 04:02 PM
Sounds like someone likes netbeans more than eclipse. None of the netbeans questions say anything like "eclipse is the only competitor close to netbeans" -- they all just say "... and that is why...
-
March 29th, 2011, 03:57 PM
Sounds like a good idea. Whats the question?
I don't think this is what you are asking but since you labeled this as an object oriented question, maybe it is. If you are trying to store all 3...
-
March 29th, 2011, 03:41 PM
Based on your description of the problem you just need to read a string as an input from a user and it doesn't matter how many letters or numbers there are... a string is a string (check out Scanner...
-
March 29th, 2011, 03:37 PM
This looks like it might help.
-
March 26th, 2011, 08:20 AM
It looks like you are using parseInt correctly to me although you may want to throw a try/catch statement around it to catch a NumberFormatException. What is the problem you are having?
-
March 14th, 2011, 09:21 AM
Based on what you've shown here I don't know what this line of code does:
vTrainees.get(i).printOutput();
But my guess would be that this doesn't write anything to a file.
This is the...
-
March 13th, 2011, 04:15 PM
Constructors are meant to initialize things, not do half the work of your program. When I got to this part of your code:
public StudentDatabase ()//constructor
{
Menu menu = new Menu();...
-
February 26th, 2011, 11:59 AM
You forgot to do the other 2 parts of his homework.
-
February 25th, 2011, 09:31 PM
You could also do a google search for working with regular expressions with java. It is not exactly simple but it will be helpful beyond the project you are working on now.
-
February 14th, 2011, 10:11 AM
Here is the documentation for the Vector Class with a list of methods you are able to use with Vectors.
-
February 13th, 2011, 09:43 PM
I think Martin O is trying to say this.
-
February 13th, 2011, 08:30 PM
Oh I understand now. You are are able to enter a decimal number for the final module because moduleTest is a double. You can only put whole numbers for quiz scores because your vScores vector is a...
-
February 13th, 2011, 08:23 PM
You need to put that into a loop, so that if the if-statement is not satisfied, you can divert back to the beginning of the loop, re-execute print statement (prompt) and have your scanner object read...
-
February 13th, 2011, 05:49 PM
Setting the maximum input to 100 with an if-statement shouldn't be a problem. Here is an example using the code you posted with a simple if-statement:
// Section 3
int theScore = 0;...
-
February 11th, 2011, 08:19 PM
Its getting hard to help without writing the program for you because the problems you are having now have to do with the logic of the program more than any coding problems.
That being said here is...
-
February 10th, 2011, 07:30 PM
Ok you should make your class called Trainee separately from your main class.
What you are trying to do here is add an Integer to a Vector of Trainee objects.
Here's a simple example that...
-
February 9th, 2011, 03:40 PM
Ok so your integer array called counts is going to count how many of each character there are. Every time you see an 'a' you want to increment the value stored in count[0], when you see a 'b' you...
-
February 8th, 2011, 08:53 PM
If you cast a character as an integer, that character's ascii value will be returned. Uppercase letters have ascii values between 65 and 90 and lowercase letters have ascii values between 97 and...
-
February 8th, 2011, 07:11 PM
I won't spend much time on this because it's pretty old and you have probably finished it by now. But what you are doing is the last step of a Merge Sort. The 3 steps of a Merge Sort are to break a...
-
February 8th, 2011, 06:49 PM
What I think this assignment is asking you to do is to replace the body of the switch-case statement with method calls. For example, the first part of the switch-case statement says:
case 1...
-
February 8th, 2011, 06:38 PM
Maybe you should make a method in your PokeMonAbilities class that takes an Integer (the array index) and returns a String (the value stored in that array index)
Then assuming bulbasaur is an...
-
February 8th, 2011, 06:25 PM
I'm not sure if I am understanding you correctly, but if what you want to do is keep a collection of Strings, ints, and chars for things like students' names, number grades, and letter grades, you...
-
February 8th, 2011, 06:11 PM
Looks like fine pseudo code. I think you should print something about how the user should input the gratuity rate (whole number or decimal (ex: 15 or .15)), and then you need to prompt the user to...
-
February 8th, 2011, 05:59 PM
Sorry in the 3rd part of that reply, when I said 'Data' I meant 'Date'
|
Click Here to Expand Forum to Full Width
|