Search:

Type: Posts; User: Montrell79

Search: Search took 0.22 seconds.

  1. Replies
    0
    Views
    515

    Error when debugging

    I'm a rookie using eclipse as my IDE, and I like to learn by debugging and stepping into the program to watch how each variable is affected by each line of code.
    Sometimes this works and other times...
  2. Replies
    8
    Views
    860

    Re: Need loop idea please!

    Let's try this again:

    //
    while (m <=n){

    temp = m *(Math.pow(1, -3)) - 2;

    m+= 2;

    localSum = (int) temp;
  3. Replies
    8
    Views
    860

    Re: Need loop idea please!

    I think I'm a little closer now, but this method only works using the example given of m =5 and n =9, but not if I plug in other numbers that are more than 4 digits apart. I know there is an error in...
  4. Replies
    8
    Views
    860

    Re: Need loop idea please!

    7 - 9 + 11 - 13 + 15 - 17 + 19 - 21 + 23 - 25 + 27 - 29 + 31 - 33 + 35 - 37 + 39 - 41 + 43 - 45 + 47 - 49 + 51 - 53 + 55 - 57 + 59 - 61 + 63 - 65 + 67 - 69 + 71 - 73 + 75 - 77 + 79 - 81 + 83 - 85 +...
  5. Replies
    8
    Views
    860

    Re: Need loop idea please!

    I know what I need the loop to do, I just don't know how to execute it in the body of the loop. I'm very new to java and need to do this for a homework assignment. Let's use another example - m= 7...
  6. Replies
    8
    Views
    860

    Need loop idea please!

    I'm trying to create a method called myOddNum(int m, int n)

    The method needs to obtain 2 odd integers from the user (ex: m = 5 and n = 9)
    and it needs to calculate the following series: 5 - 7 + 9...
  7. Replies
    2
    Views
    1,506

    [SOLVED] Re: Method to reverse String using While Loop

    Thanks Norm! Got it now
  8. Replies
    2
    Views
    247

    Warning! Greenhorn alert

    >:)
    Hello everyone!
    I'm a newbie to Java and this forum. Taking some classes right now and would appreciate your help as I have questions that come up. I'm hoping to return the favor to other...
  9. Replies
    2
    Views
    1,506

    [SOLVED] Method to reverse String using While Loop

    Hello, I am trying to create a program that will output the reverse of any string of integers. I got the program to work with some help from another forum, but I'm just not understanding why it...
Results 1 to 9 of 9