I'm here to help students learn programming. If you are not a student and are not trying to learn programming, I suggest that you hire a programmer to do the programming work you need done.
Type: Posts; User: Norm
I'm here to help students learn programming. If you are not a student and are not trying to learn programming, I suggest that you hire a programmer to do the programming work you need done.
Sorry, I don't write code for students.
If you did not write the code that you have posted, I suggest that the first thing you need to do is figure out how the code works and add some comments to...
Before starting coding, do some analysis to find out when and where the index values are determined.
Start by finding where the index is available. Add some println() statements to print out an...
Have you looked at saving the indexes in an ArrayList?
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve formatting.
What is the current output from the simple version?
What is the desired output from the program?
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get...
If the code saves the the index values in an ArrayList, they could be printed when desired.
Can you make a simpler example with a small array and a small sum so it is very easy to see what the...
How is an index selected? Have the method return the index's value.
System.out.println("theIndex= "+ theIndex);
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
Can you explain what you are trying to do and Give an example?
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve formatting.