×

Discussion Board

Results 1 to 2 of 2

Thread: j2me

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    24

    j2me

    Hi can anyone tell me is LinkedList concept supports J2me ..??? if yes please can you provide a sample code............


    Thank You

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: j2me

    There is no built-in implementation of a linked-list.

    You would need to implement your own. For example:

    PHP Code:
    // this isn't a complete implementation!!

    public class LinkedList {
        private static class 
    Node {
            public 
    Object element;
            public 
    Node next;
        }

        private 
    Node start;

        public 
    void addAtStart(Object o) {
            
    Node node = new Node();
            
    node.element o;
            
    node.next start;
            
    start node;
        }

    In practice, you might be better just to use Vector or Hashtable.

    Graham.

Similar Threads

  1. J2ME or C++ for VoIP on Mobile
    By sandeepkumar03 in forum VoIP
    Replies: 4
    Last Post: 2009-02-02, 10:28
  2. Calling a native c or c++ application from J2ME
    By satyarajasekhar in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2009-01-02, 12:10
  3. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  4. Acessing voice channel using J2ME
    By diegomello in forum VoIP
    Replies: 1
    Last Post: 2008-10-21, 15:57
  5. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36

Posting Permissions

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