Search:

Type: Posts; User: Saintroi

Page 1 of 3 1 2 3

Search: Search took 0.34 seconds.

  1. Replies
    22
    Views
    748

    Re: Input into array.

    Yeah no problem, ill paste the whole assignment.

    Mastermind is a logic game for two players. In each round, one player plays the part
    of codemaker, and the other plays codebreaker. The codemaker...
  2. Replies
    22
    Views
    748

    Re: Input into array.

    Nah the second number is how many are right, but in the wrong place.

    So they got rid of the R completely, added a G, and moved the B and O.

    the first number is how many are correct completely....
  3. Replies
    22
    Views
    748

    Re: Input into array.

    You know, ive been trying to find ways to test and see if the input was invalid, but what if I just find one way to see if it is valid, and then else print invalid?

    I'm trying of think how to...
  4. Replies
    22
    Views
    748

    Re: Input into array.

    Lol I think so.

    Thanks! :D
  5. Thread: Searching

    by Saintroi
    Replies
    4
    Views
    351

    Re: Searching

    I ran it as well, and I should also state that you can't copy and paste this one out of the BlueJ compiler, which is what killer is using.
    Anyway,

    The problem is in the method binarySearch2, on...
  6. Replies
    22
    Views
    748

    Re: Input into array.

    Well what do you mean by that? You can't just type (String) in front of it. That doesn't work.
  7. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Heck, I cant even find a list like that. I may just skip this one. Hopefully I can get the one I posted about in another thread on here solved. 5 out of 6 isnt bad.
  8. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Woah. Your top of the list in Google is a lot better than mine. Lol. I'll check this out and see if it helps. If not, I may just find a list of all the vampire numbers from 1 - 100,000 and say if the...
  9. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Not good. I cant find anything on this subject really. I dont know why. I guess i'll just keep looking. Its hard to find time though.
  10. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Yeah I didnt mention did I? I think the it should print 126, I belive, but before that it should have it in that format due to the for loop in the testVamp method, which has a println for each...
  11. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    The number is input as a string, then put in a variable as a string. I then make another variable and use parseInt to make it the input, but as an Integer.

    Thats all in the main method. I then...
  12. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Hm, well when I put in a number like 126, its printing 126 instead of
    1
    2
    6

    like I want it to. Actually I need it to.
    I am really stumped on this program. Geez :/
  13. Replies
    22
    Views
    748

    Re: Input into array.

    So the program I have to write deals with a Mastermind game, which some of you may be familiar with. I have to take input of the format:
    2
    BYOG 3 0
    BGOY 3 0

    and tell whether it is a valid...
  14. Replies
    22
    Views
    748

    Re: Input into array.

    Got it working now, thanks guys :D Will post on this again if I have another issue.
  15. Replies
    22
    Views
    748

    Re: Input into array.

    Ahhh. Well i'm using nextInt() now, I think what ill do is make some bogus String that I dont use to take up the newline character. That sounds easiest!
  16. Replies
    22
    Views
    748

    Re: Input into array.

    I didnt think of that before javapenguin, its changed now. Thanks! But if I do what norm suggested, I get this:


    Please enter a number followed by that number of guesses:
    3
    1
    2
    3
    i=0 <
    i=1...
  17. Replies
    22
    Views
    748

    Input into array.

    I have to do this assignment, and its really weird and complicated, so ill save you that. But I need to read multiple lines of input into an array, the first line of input gives me the number of...
  18. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Yeah thats what I meant. I'm a doofus and put int, but what it is is a String of a number that I need to separate into an array of ints. I think I did it right.

    And thats what I thought too, but...
  19. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Well, ive got some code. Which is better than what I had before. But it doesn't really do anything.. I dont know really how to test these things.. Its frustrating.



    import java.util.*;
    public...
  20. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Alright sounds good. I just.. ugh.. i'm trying to think of how to start this and ive hit a wall. I guess im gonna go play some games and go to a softball game and see if it hits me. Hopefully by...
  21. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Yeah that is the major part, I agree. I havent come up with an algorithm yet though, ive set my program up to accept an int and I have a string set to it as well as an int variable, I just dont know...
  22. Replies
    20
    Views
    3,127

    Re: Vampire Numbers

    Alright I guess. But to clarify, I was not asking anyone to do this for me, I wanted a basic starting algorithm or tips. But I guess I will code what I know I can until I get to something I dont know...
  23. Replies
    20
    Views
    3,127

    Vampire Numbers

    I have to write a program that finds what are called "Vampire Numbers." These are numbers in which the numbers of the number can be rearranged to make a set of numbers that multiply to get that...
  24. Replies
    9
    Views
    388

    [SOLVED] Re: 2 Lines Stuffs.

    Hmm... ive never used a map before, but I looked it up and it seems a bit weird. Could you give me a basic explanation as to how to do what I need to do with it?
  25. Replies
    9
    Views
    388

    [SOLVED] Re: 2 Lines Stuffs.

    That makes sense. I will try that as soon as I get a chance tomorrow. And squeakbox, ready was the conditional you have to use for a BufferedReader, and I intended for the user to enter e when done,...
Results 1 to 25 of 60
Page 1 of 3 1 2 3