Search:

Type: Posts; User: Faz

Page 1 of 4 1 2 3 4

Search: Search took 0.08 seconds.

  1. Re: Installing Java program with database on another computer.

    Hey Guys

    Cheers for the info I will check them out.
  2. Installing Java program with database on another computer.

    Hey guys

    I'm currently developing a gym membership system for my aunt. I'm using Java and mySQL as the database. I'm getting fairly close to finishing it all I need to do is add a few analytical...
  3. Re: Java Assignment - Almost done I think. Clean-up help?

    Could you tell us what it's supposed to do and what it's actually doing at the moment?
  4. Thread: Permutation

    by Faz
    Replies
    6
    Views
    2,988

    [SOLVED] Re: Permutation

    I'm bamboozled I have to say. If the order of cards is the most important have you thought about ordering them? For a video poker game I wrote I decided to create a duplicate of the hand that was...
  5. Replies
    15
    Views
    5,068

    Sticky: Re: New Syntax Highlighting Feature!

    It's Fantastic.
  6. Thread: Looping Question

    by Faz
    Replies
    9
    Views
    4,864

    Re: Looping Question

    Let me hazard a guess as to what they do when n = 6 the first prints 1,2,3,4,5,6 the second prints 1,4 the third prints1,4,5,8 or something like that i is just an integer to keep track not the...
  7. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    I just spotted that by chance from now on don't tell us what the output wasn't tell us what it was. We can't tell much just from what you expect the programme to do can we?
  8. Thread: Looping Question

    by Faz
    Replies
    9
    Views
    4,864

    Re: Looping Question

    Did I say print out i?
  9. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    So what was the output? You have gallons as an int but you are passing it a double.
  10. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    Well you tell us what is actually happening now?
  11. Thread: Looping Question

    by Faz
    Replies
    9
    Views
    4,864

    Re: Looping Question

    The reason you only got 1 4 is because you are setting the loop to run until N > n while what you want to to is run it n times I would recommend you use a for loop.




    for(int i = 1; i <= n;...
  12. Replies
    21
    Views
    3,062

    Re: New Recursion problem need lil help

    Ah OK well then I see what you were doing with your code now, I think.

    But your pseudocode is quite bare you need to think about how to get each digit, if you knew the length it's easy enough but...
  13. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    OK first of all see what happens when you change


    distance = miles;

    for


    miles = distance;
  14. Thread: Looping Question

    by Faz
    Replies
    9
    Views
    4,864

    Re: Looping Question

    OK what are you being asked to do? Where are you setting n and what determines it? upByThrees(4) What does this tell you? Is that your whole code? Why would you want to get it to print out x number...
  15. Replies
    12
    Views
    2,595

    Re: I dont get it....please help

    Actually you only need to go to the square root of 50,000 so I think 224 (so that's where they 223 came from)

    That came out as p2 but it's actually p squared.
  16. Replies
    3
    Views
    1,660

    Re: Problems with focussing JFrame

    You wouldn't have the other JFrame to always be on top too would you?

    EDIT:
    Also what version of Java are you using?
  17. Replies
    4
    Views
    2,127

    Re: Java says:"Hello World". I say:"It works!"

    Welcome lad.
  18. Replies
    10
    Views
    3,371

    Re: concurrent programming

    Haha classic line.

    But yeah we need a bit more then "a mess" tell us what's happening maybe try to do some of your own debugging with println statements to see what is happening in what order.
  19. Replies
    12
    Views
    2,595

    Re: I dont get it....please help

    That would be a simple but not foolproof way of doing it. If you went through and set all mulitples of 2, 3,5,7,9,11 and 13 you would get most primes but there would be some missing.(EDIT: sorry I...
  20. Replies
    21
    Views
    3,062

    Re: New Recursion problem need lil help

    OK perhaps if you explained a bit better what exactly you are trying to do. I am guessing you want to find the sum of the digits of an integer not the sum of integers of a digit :P first of all...
  21. Thread: Permutation

    by Faz
    Replies
    6
    Views
    2,988

    [SOLVED] Re: Permutation

    I'm a bit confused as to the game I mean what constitutes a good hand? I mean you say 12345 is deadly would 23456 or 01234 be stronger and how strong would say 66666 or 00000 be?
  22. Replies
    12
    Views
    2,595

    Re: I dont get it....please help

    I don't think that would make a difference. Norm is right the logic you are using to check if a number is prime is flawed I just ran a similar logic in VBA in excel to show this.

    9000
    9006
    9009...
  23. Thread: I am stuck

    by Faz
    Replies
    5
    Views
    3,153

    Re: I am stuck

    It's a general rule of thumb that these things should be solved in public so people have a chance of finding it without asking the same question later on.

    You don't need an array here you just...
  24. Replies
    7
    Views
    3,145

    Re: Not sure what is wrong with this

    Yes that should do it but I was rather hoping he'd figure it out himself so that he understands why that is.
  25. Replies
    7
    Views
    3,145

    Re: Not sure what is wrong with this

    OK so what exactly is the problem you're having? Is it compiling with or without errors? If without what is happening that you don't expect? And what exactly is this code for?



    public static...
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4