# Search:

Type: Posts; User: Montrell79

1. ## Thread: Error when debugging

by Montrell79
Replies
0
Views
684

### 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...

by Montrell79
Replies
8
Views
1,071

### 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;

by Montrell79
Replies
8
Views
1,071

### 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...

by Montrell79
Replies
8
Views
1,071

### 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 +...

by Montrell79
Replies
8
Views
1,071

### 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...

by Montrell79
Replies
8
Views
1,071

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. ## Thread: Method to reverse String using While Loop

by Montrell79
Replies
2
Views
2,200

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

Thanks Norm! Got it now

by Montrell79
Replies
2
Views
410

>:)
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. ## Thread: Method to reverse String using While Loop

by Montrell79
Replies
2
Views
2,200

### [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