Search:

Type: Posts; User: kassavetova

Search: Search took 0.11 seconds.

  1. Replies
    13
    Views
    1,261

    [SOLVED] Re: shuffle array items?

    Not sure what you mean by using the -Xlint option. I compiled it with -Xlint and I looked at the warnings already which didn't really make sense to me because as I mentioned before I'm quite new to...
  2. Replies
    13
    Views
    1,261

    [SOLVED] Re: shuffle array items?

    Nevermind, I didn't know it would still run if I tried it so I don't really care about the warnings anymore, thanks.
  3. Replies
    13
    Views
    1,261

    [SOLVED] Re: shuffle array items?

    Yep I tried this but I haven't really encountered warnings of this type. To be frank never really encountered warnings when compiling a program at all... I am quite new to java so I guess that's why....
  4. Replies
    13
    Views
    1,261

    [SOLVED] Re: shuffle array items?

    Oh I see, okay. Any idea why I'm getting the error in the above example?
  5. Replies
    13
    Views
    1,261

    [SOLVED] Re: shuffle array items?

    Thanks Junky, used another loop outside the first one and it worked.
    @Norm, I looked at the doc material but I was a bit confused on how to actually use the shuffle method so I googled it and most...
  6. Replies
    13
    Views
    1,261

    [SOLVED] shuffle array items?

    Hi guys, so I have the following piece of code:




    public class Test{

    public static void main (String args[]){
    int[] myList = {1,2,3,4,5};
    for (int i = 0; i <...
  7. Replies
    9
    Views
    1,499

    Re: too many if's and else's!

    Ok so I understand what you are trying to say but I still cannot see the problem myself so I tried this with a nested loop on top of the rest of the code anyway:



    for(int k = 0; k <...
  8. Replies
    9
    Views
    1,499

    Re: too many if's and else's!

    Anybody who knows what causes the problem described in OP?

    Thanks
  9. Replies
    4
    Views
    1,086

    [SOLVED] Re: Simple Problem!

    No worries, I managed to figure it out ! :)
  10. Replies
    4
    Views
    1,086

    [SOLVED] Re: Simple Problem!

    thank you. Have found a solution, not sure why I never thought of this before!



    for (int i=1; i<=Integer.parseInt(args[0]); i++)
    {


    if (i%15==0)
  11. Replies
    9
    Views
    1,499

    You know what the point I was making is so either...

    You know what the point I was making is so either that's the only thing you read or you're really not here to help people but to waste your time writing useless sarcastic posts. Hope it was worth it
  12. Replies
    4
    Views
    1,086

    [SOLVED] Simple Problem!

    Hello,

    I was trying to write a program that checks if any of the numbers that the user inputs are divisible by 3 5 or both. If the number is divisible by 3 it prints out "Fizz", if divisible by 5...
  13. Replies
    9
    Views
    1,499

    too many if's and else's!

    My question is in regards to my code below. Basically, I've come to the point when I am using too many if's and else's and my program gets confused. The point of the first if is to check if the...
Results 1 to 13 of 13