Search:

Type: Posts; User: camel-man

Page 1 of 4 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    5
    Views
    110

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

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

    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
  3. Replies
    5
    Views
    125

    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...
  4. Re: Can some one write a jgrasp code for this using do while?

    What have you tried so far?
  5. Replies
    6
    Views
    129

    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?"
  6. 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
  7. Re: need help telling if a word or phrase ins a palindrome in java

    then do nothing.
  8. Replies
    6
    Views
    79

    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.
  9. 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.
  10. Re: What Is The Purpose Of This Piece Of Code

    Not quite, you're getting closer though.
  11. 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]...
  12. 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.
  13. 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.
  14. 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.
  15. 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...
  16. 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.
  17. Replies
    7
    Views
    148

    Re: Need Help Getting codes In

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

    by camel-man
    Replies
    6
    Views
    118

    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...
  19. 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//
  20. Re: }while(guess1!=gen1) ';' expected Compiler error

    Why don't you post your full code. What is "another"?
  21. 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...
  22. Replies
    4
    Views
    136

    Re: homwork java lotto question help.

    try changing all the else if statements, to just if statements. That way nothing will get skipped over.
  23. Replies
    8
    Views
    145

    Re: Storing a string in a 2D array

    You should make a method that takes those parameters. Then you can go to that row and column and put in the letter you want manually
  24. Replies
    8
    Views
    145

    Re: Storing a string in a 2D array

    Well, you arent printing anything... you're just printing a new line. you should print out the actual image slot..


    for (int i = 0; i < column; i++)
    {
    for (int j = 0; j < row;...
  25. Replies
    8
    Views
    145

    Re: Storing a string in a 2D array

    What is your other problem? You should be able to accomplish all that you listed with this 2d char array
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4