CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: bgroves85

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Re: Sliding puzzle Restart button(same exact game)

    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...
  2. Re: survey about netbeans and eclipse for my dissertation

    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...
  3. Re: object oriented programming assignment - vectors issues

    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...
  4. Replies
    1
    Views
    938

    Re: Help! Product Code Validation

    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...
  5. Replies
    1
    Views
    1,158

    Re: getDocumentBase() for non-applets?

    This looks like it might help.
  6. Replies
    7
    Views
    5,666

    Re: Using parseint for jTextField...

    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?
  7. Replies
    7
    Views
    1,401

    Re: FileWriter Help needed

    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...
  8. Replies
    27
    Views
    5,166

    Re: need help to link data objects together

    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();...
  9. Replies
    14
    Views
    2,741

    Re: Help with array & for loops!

    You forgot to do the other 2 parts of his homework.
  10. Thread: Scanner I/O

    by bgroves85
    Replies
    5
    Views
    1,245

    Re: Scanner I/O

    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.
  11. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    Here is the documentation for the Vector Class with a list of methods you are able to use with Vectors.
  12. Replies
    5
    Views
    908

    Re: Simple if statement

    I think Martin O is trying to say this.
  13. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    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...
  14. Replies
    5
    Views
    908

    Re: Simple if statement

    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...
  15. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    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;...
  16. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    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...
  17. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    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...
  18. Replies
    4
    Views
    3,084

    Re: Counting Letters using Arrays

    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...
  19. Replies
    4
    Views
    3,084

    Re: Counting Letters using Arrays

    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...
  20. Replies
    3
    Views
    4,302

    Re: Bluej: Merging Arrays

    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...
  21. Re: Implenting arrays and method call into current code

    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...
  22. Replies
    4
    Views
    2,232

    Re: Passing ArrayList?

    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...
  23. Replies
    32
    Views
    4,735

    Re: Issue with vectors

    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...
  24. Replies
    2
    Views
    3,140

    Re: First Program

    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...
  25. Replies
    4
    Views
    1,583

    Re: code errors - need some input.

    Sorry in the 3rd part of that reply, when I said 'Data' I meant 'Date'
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured