Results 1 to 4 of 4

Thread: vector remove

  1. #1
    _1_9_9_4_ is offline Member
    Join Date
    Mar 2015
    Location
    Bi Ngan
    Posts
    2
    Rep Power
    0

    Default vector remove

    Hello, I'm a new member of the forum

    Java Code:
    public class Student{
         private float score;
         //................................
         //................................
         public boolean check(){
              return score < 5.0;
         }
    }
    
    public class English{
          private List<Student> MyVector = new Vector<Student>();
         //................................
         //................................
         public void Erase(){
                for(Student baby: MyVector)
                      MyVector.remove(baby.check());
         }
    }
    why be erased all
    why it is remove all(sorry bad english)
    Last edited by _1_9_9_4_; 03-13-2015 at 10:34 PM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: vector remove

    Please make a small, complete program that compiles, executes and shows the problem.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    _1_9_9_4_ is offline Member
    Join Date
    Mar 2015
    Location
    Bi Ngan
    Posts
    2
    Rep Power
    0

    Default Re: vector remove

    can give me some links about the java tutorial on this forum are not. Documents in my mother tongue very little and very sketchy. I have to Redirecting to learn but somewhat difficult to use.
    or can tell me pathways java how
    for me the key words so that I can search sequentially to learn. ability to read my english is limited, can not read the books written in English. I always have to use translation tool of your browser to read. please help me !!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: vector remove

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Vector+remove function
    By w95 in forum New To Java
    Replies: 3
    Last Post: 05-27-2011, 07:45 PM
  2. Vector
    By Anandiscool in forum New To Java
    Replies: 4
    Last Post: 03-28-2010, 09:10 PM
  3. Vector<vector> loop thru
    By ocean in forum New To Java
    Replies: 11
    Last Post: 11-21-2009, 03:17 PM
  4. Replies: 1
    Last Post: 04-06-2009, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •