Search:

Type: Posts; User: camel-man

Page 1 of 4 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    604

    Re: Pass variable to HttpURLConnection

    post your code in this forum, don't link to it.
  2. Replies
    1
    Views
    712

    Re: Java aplication

    What have you tried? What technologies are you using? Regular servlet/jsp, spring/springmvc?
  3. Replies
    3
    Views
    588

    Re: ArrayIndexOutOfBoundsException Yelp!

    What do you think will happen when the outter for loop is on it's last iteration... the inner for loop is going to start at an index 1 past the length of the array.
    Remember that indexing an array...
  4. Replies
    5
    Views
    846

    Re: Using Int to get a value from a string?

    What do you mean increment slabType? that is of String[].. which you cannot increment.
  5. Replies
    5
    Views
    997

    Re: Urgent help needed (again)

    if you make it into a method than you can convert the two numbers into a string and return the String. Instead of returning two numbers
  6. Replies
    5
    Views
    997

    Re: Urgent help needed (again)

    My advice would be set aside a method for each case. For example do a method for checking if the cards are a straight, do another method checking if they are full house.. so on so forth. It will help...
  7. Re: Can some one write a jgrasp code for this using do while?

    What have you tried so far?
  8. Replies
    6
    Views
    819

    Re: help the noob pls

    EDIT: I realized that you are leaving the newline character in the buffer.

    To fix it, put a userInput.nextLine(); after "what you wanna know?"
  9. Re: need help telling if a word or phrase ins a palindrome in java

    you would just leave it empty...




    if(space)
    do nothing
    else
    do the normal code
  10. Re: need help telling if a word or phrase ins a palindrome in java

    then do nothing.
  11. Replies
    6
    Views
    902

    Re: Can someone help me out with this

    What do you mean a redline? Where are your if / else statements for error checking? You should be able to check if windSpeed is out of range or Temperature is out of range.
  12. Re: need help telling if a word or phrase ins a palindrome in java

    add in an if statement, saying if charAt(i)==' ' (a space) then move to the next one. Basically, just ignore spaces.
  13. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    Not quite, you're getting closer though.
  14. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    they are the values that you put in. q and p are just the indexes. So if you have an array that you put 5 integers in say they were

    values = 2, 90, 6, 100, 8

    and value of q is 0, Then values[q]...
  15. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    https://www.youtube.com/watch?v=ZcTgmKtvSQ4

    This will help explain nested loops better.

    You're going to want to start with the first loop, then the second loop, then the if statement.
  16. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    Do you know how for loops work?

    Look into nested loops . The inner code of the outter loop will go (inner loop * outter loop) times.
  17. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    Do what Norm suggested, write down the values each time through the loop and post what you think they are here.
  18. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    take each piece one at a time.

    Ill help you get started



    int values[] = new int[5];
    int z;
    for (int i = 0; i<5; i++){
    values[i]=Integer.parseInt(JOptionPane.showInputDialog("Ent er...
  19. Replies
    22
    Views
    1,385

    Re: What Is The Purpose Of This Piece Of Code

    Get out a piece of paper and write down all the variables and their values, Step through each step slowly and write down the values accordingly. That's the best way to do a desk check.
  20. Replies
    7
    Views
    1,455

    Re: Need Help Getting codes In

    What have you got down so far?
  21. Thread: printStrings

    by camel-man
    Replies
    6
    Views
    3,550

    Re: printStrings

    You need to accept a String as the first parameter in your method
    You have the right idea, but you want something like this


    public static void printStrings(String abc, int number) {
    for (int i...
  22. Re: }while(guess1!=gen1) ';' expected Compiler error

    You aren't giving another any value are you? You are putting it in the while loop as a condition before giving it a value//
  23. Re: }while(guess1!=gen1) ';' expected Compiler error

    Why don't you post your full code. What is "another"?
  24. Re: How do I just read a users input back out to them?

    Well first you have both the print loops one after the other. You want to put the first loop to print the arrays unsorted before the actual sorting code. Then, after you do the sort, print out the...
  25. Replies
    4
    Views
    945

    Re: homwork java lotto question help.

    try changing all the else if statements, to just if statements. That way nothing will get skipped over.
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4