Page 12 of 20 FirstFirst ... 21011121314 ... LastLast
Results 221 to 240 of 395
  1. #221
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

  2. #222
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

  3. #223
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    just store in Array.

  4. #224
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    Sir are you doing something for me.

  5. #225
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

    Default

    See this example and try to implement on the project.

    Java Code:
    import java.util.ArrayList;
    import java.util.Collections;
    
    /**
     *
     * @author Eranga Tennakoon
     */
    public class ArrrayListCount {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            // TODO code application logic here
            //@Override
            ArrayList<String> ar = new ArrayList<String>();
            
            ar.add("192.168.2.17"); 
            ar.add("192.168.2.11"); 
            ar.add("192.168.2.17");
            ar.add("192.168.2.20");
            ar.add("192.168.2.17");
            ar.add("192.168.2.11");
            ar.add("192.168.2.17");
            ar.add("192.168.2.11"); 
            ar.add("192.168.1.17");
            ar.add("192.168.2.17");
            ar.add("192.168.2.11");
            ar.add("192.168.2.11");
            
            Collections.sort(ar);
            result(ar, ar.size());
        }
        
        public static void result(ArrayList al, int size) {
            int temp = 1;
            int count = 0;
            for(int i = 1; i < al.size();i++ ) {
                if(al.get(i-1).equals(al.get(i)))
                    temp++;
                else {
                    System.out.println(al.get(i - 1).toString() + " " + temp);
                    count += temp;
                    temp = 1;
                }
            }
            if(count < size) {
                System.out.println(al.get(size - 1) + " " + (size - count));
            }
        }
    }

  6. #226
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    ok sir i am trying..

  7. #227
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

    Default

    You should that. I'm giving a nice help step-by-step. Giving code to you is not a problem for me. But you should learn something. :) I want to help in that way.

  8. #228
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    i impliment these code in project.It read Ips From Logfile and Short then print according to need.But It is not print on TextArea.So plz tell me how can i do this..

    Plz Help me

  9. #229
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

  10. #230
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    i am not geting sir.So plz help me

  11. #231
    daGame is offline Member
    Join Date
    May 2008
    Posts
    24
    Rep Power
    0

    Default

    Quote Originally Posted by Mir View Post
    i am not geting sir.So plz help me
    What a piece of crap..ive been watching this thread for quite some time now...I really appreciate Eranga tryin to help this person, but i dont see any effort from this chap...i suggest you first learn what java is and do the thing that you are trying instead of begging for the code.

    @Eranga- If you really want to help this guy...stop spoon feeding him, or else he'll be back asking codes for some other job. I appreciate your patience though;)

    Does this get the longest and dumbest thread award?

    P.S Please take it seriously and learn some java. Nothing personal :)

  12. #232
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    Quote Originally Posted by Eranga View Post
    Collect results into one place. Display them on button click event as I explain earlier.
    i got it sir...

    Thxs

  13. #233
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

    Default

    Quote Originally Posted by daGame View Post
    What a piece of crap..ive been watching this thread for quite some time now...I really appreciate Eranga tryin to help this person, but i dont see any effort from this chap...i suggest you first learn what java is and do the thing that you are trying instead of begging for the code.

    @Eranga- If you really want to help this guy...stop spoon feeding him, or else he'll be back asking codes for some other job. I appreciate your patience though;)

    Does this get the longest and dumbest thread award?

    P.S Please take it seriously and learn some java. Nothing personal :)
    Hi daGame,

    First of all, welcome to our community. :)

    I agreed with you. As you said Mir, doesn't learn anything here. Always waiting for my response. Even I can't believe that, how far I helped her and how far he learn something on it.

    At the end I decide to complete this thread and last give some friendly advice to him. I'm waiting until he marks the thread solved. :) ;)

  14. #234
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    I solve the problem through your help..

    Realy you are brilliant...

    Thxs

  15. #235
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

    Default

    Don't worry pal. Still you have any question, ask here. I'm help you. All those things comments you, because I like to see that you are best in Java.

    Is that true, you solved this?

  16. #236
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    YES i solve this

  17. #237
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    Quote Originally Posted by Eranga View Post
    Don't worry pal. Still you have any question, ask here. I'm help you. All those things comments you, because I like to see that you are best in Java.

    Is that true, you solved this?
    I have a problem.. May
    i tell you..

  18. #238
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

    Default

    Don't worry pal. Ask your questions any time. If I know I'll tell you. All those commenting for you.

  19. #239
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    10

    Default

    Ok

    Question is related to Url.Some Http url is open and some one is not open. Can you help me..

  20. #240
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,370
    Blog Entries
    1
    Rep Power
    22

Page 12 of 20 FirstFirst ... 21011121314 ... LastLast

Similar Threads

  1. Must Read.....
    By sanjeevtarar in forum Forum Lobby
    Replies: 10
    Last Post: 03-03-2010, 08:16 PM
  2. how to read a form with JFS
    By crispy in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 05-01-2008, 03:07 PM
  3. Read file
    By tajinvillage in forum Threads and Synchronization
    Replies: 0
    Last Post: 01-29-2008, 10:10 AM
  4. How to read the following
    By rrp in forum New To Java
    Replies: 0
    Last Post: 12-03-2007, 07:16 PM
  5. read txt file
    By sureshsri1981 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-05-2007, 03:49 PM

Posting Permissions

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