User Profile

Collapse

Profile Sidebar

Collapse
jlandbw04
jlandbw04
Last Activity: Jul 10 '07, 11:09 PM
Joined: Jun 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jlandbw04
    replied to Need "remove all" method for an assignment
    in Java
    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....
    See more | Go to post

    Leave a comment:


  • jlandbw04
    replied to Need "remove all" method for an assignment
    in Java
    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 final
    ...
    See more | Go to post

    Leave a comment:


  • jlandbw04
    started a topic Need "remove all" method for an assignment
    in Java

    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...
    See more | Go to post
No activity results to display
Show More
Working...