Search:

Type: Posts; User: connorlm3

Page 1 of 2 1 2

Search: Search took 0.17 seconds.

  1. Replies
    2
    Views
    437

    Re: GArc & move help.

    I dont believe so, its just the acmlibrary
  2. Replies
    2
    Views
    437

    GArc & move help.

    This program shows a pacman like figure moving right across the screen using GArcs. I run my program and it doesnt even show the first PacMan garc that I have added. Any Help?

    Heres my code:

    ...
  3. Replies
    2
    Views
    418

    Re: GCompound Object Help

    A GCompound, I found a a sample of one, I got my program working. It makes a house as a gcompound object, then bounces it around the screen. Thanks for replying though!
  4. Replies
    2
    Views
    418

    GCompound Object Help

    Hi, Im needing to make a house as a compound object then bounce it around the screen. I can not find a tutorial or anything on how to make a compound object. Can anybody point me to one? A tutorial...
  5. Replies
    1
    Views
    214

    ArrayIndexOutOfBounds Help

    Can anyone help me and let me know why this is going out of bounds? Its throwing the exception on line 41
    The program is suppose to take a GImage and rotate it 90 degrees.


    /*
    * Mat2670...
  6. Thread: Hangman Game

    by connorlm3
    Replies
    1
    Views
    637

    Hangman Game

    Hi, i've been working on a hangman java game. I have a lot of it coded, but when I go to run it, Im getting stuck somewhere I believe on line 64. I put a print statement before line 64 and it is...
  7. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    Ok, i changed it to where its updating the entry into guess
    still not working though. >.< it isnt exiting the while loop? even when guess and nCode match. So am I using the .equals method wrong?
    ...
  8. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    Heres current version:



    package mat2670;

    import java.util.*;

    public class Mastermind {
  9. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    But, program still isnt working right.

    --- Update ---



    Choose the length of the number you will be trying to guess:
    2
    Enter your guess:
    12
  10. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    How many digits is determined by the user. i tried changing to loop to go from i = n; i > 0; i-- but it was giving me index out of bounds exceptions

    --- Update ---

    I got it, changed loop to...
  11. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    Thanks for that, and no. it doesnt :( lol it prints it out backwards. need it to have 1,2,3,4 if the user enters 1234


    Enter your guess:
    1234
    Guess Array Contains [4, 3, 2, 1]
  12. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    Kind of, but im taking an int in from the scanner. I wasnt thinking about how it would act at first. If a user entered in 1234, that would be the array would only have 1 number in it at array[0],...
  13. Replies
    3
    Views
    131

    Re: Doesnt have Main Method?

    .. I understand that, I was only asking because my professor told me to get the code from another student and see how they accomplished it.
  14. Replies
    15
    Views
    422

    Re: Mastermind Game, Function problem?

    the values of which variables? the rightspot wrongspot or the numbers in the arrays?

    --- Update ---

    whoah, why would i be getting this? I added print statements after my if-else-if to print...
  15. Replies
    3
    Views
    131

    Doesnt have Main Method?

    A guy in my cs class sent me an answer to a program that I didn't get working correctly last week. He's not responding to my emails so I figured I'd ask here. So, i copied and pasted the code tried...
  16. Replies
    15
    Views
    422

    Mastermind Game, Function problem?

    Im required to make a variation ot the mastermind game. The program uses random numbers to generate a n-digit number. The user chooses the length of the number, n. The user should be allowed to make...
  17. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    Ok, thank you very much for your help, I can now get the number with the strategy you have helped me with, I've got it converting to an int also that i can add to a running total.
  18. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    when i print the string there, the output gives me this [Mary, F, 1234]


    if (nextLine.contains(genName)) {

    String[] numbers =...
  19. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    Ok i see how the split method works now, if i make a string like String tosplit = new String(","); and i use it in split, it just puts spaces in the string after the commas? I dont see how that could...
  20. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    Would something like this work.


    if(nextLine.contains(genName)) {

    int length = nextLine.length();
    ...
  21. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    arrays? where are arrays coming into this? you lost me now. and ok i found the method for the string to int conversion. still confused where arrays are coming into play at.. and if i try running my...
  22. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    So in the java docs i found this

    String[] split(String regex)
    Splits this string around matches of the given regular expression.

    Trying to understand what it means, and how to...
  23. Replies
    14
    Views
    255

    Re: Help with file I/O scanning etc

    well how i have it set up is what im searching the file for would be like this "Mary,F" and i already have the line that contains that as a string. How does this split method work?
  24. Replies
    14
    Views
    255

    Help with file I/O scanning etc

    I have a program where a user enters a name and a gender, then the program is suppose to read through all these yob####.txt files to see if it contains that name,gender. if it does, i need to be able...
  25. Replies
    8
    Views
    303

    Re: What is wrong with my code?

    Gahhhh I didn't check that. I think im missing some test cases. Im going to write them all out to see what im missing. If i need more help I will post. Thanks!
Results 1 to 25 of 29
Page 1 of 2 1 2