User Profile
Collapse
-
Okay. Where do I put the message "Integer not found" if the integer is not part of the array? I can't figure that out. I've tried placing it in all sorts of places. I either put it in a loop and it repeats itself, or it displays at the wrong time altogether.... -
Okay. I tried removing inside of a loop, and now something else is happening. The loop removes the multiples, but it also takes out some other numbers as well. Any suggestion as to why this is happening? Here is the new code:
...Code:import java.io.*; import java.util.*; import java.util.Vector; public class chapt10exercise5 { static Scanner console = new Scanner(System.in); static finalLeave a comment:
-
Need "remove all" method for an assignment
Okay. Here's the deal. I have this assignment for college that has me completely puzzled. I need this assignment to do the following:
1. input 12 integers into an array from the user.
2. output the numbers back to the screen showing what the user input.
3. ask the user what integer they would like to remove.
4. use a loop to remove ALL occurrance of that integer, and the output the new numbers back to the screen...
No activity results to display
Show More
Leave a comment: