CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Messenger code

  1. #1
    Join Date
    Sep 2009
    Posts
    20

    Messenger code

    pls give me a simple messenger code

  2. #2
    Join Date
    Feb 2008
    Posts
    966

    Re: Messenger code

    Code:
    public class Message {
        public void send(String message) {
             System.out.println(message);
        }
        public static void main(String args[]) {
              Message m = new Message();
              m.send("I should write my own code...");
        }
    }

  3. #3
    Join Date
    Sep 2009
    Posts
    20

    Re: Messenger code

    that was really funny,,,,,depicting u completly

  4. #4
    Join Date
    Feb 2008
    Posts
    966

    Talking Re: Messenger code

    What? It meets the requirements:

    pls give me
    It is free and open source. Feel free to include it under the open GPL. (your welcome)

    a simple
    Not sure how much more simple I could have gotten with it. (sorry )

    messenger code
    It takes a message and displays it. What more did you want it to do? (sorry, the specs were incomplete)

  5. #5
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Messenger code

    Quote Originally Posted by ProgramThis View Post
    What more did you want it to do? (sorry, the specs were incomplete)
    I suppose you could have called it 'Messenger'. Perhaps you may have jumped to a conclusion about what the specified messenger code should do, but it's impossible to tell...

    The most important single aspect of software development is to be clear about what you are trying to build...
    B. Stroustrup
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  6. #6
    Join Date
    Feb 2008
    Posts
    966

    Re: Messenger code

    Quote Originally Posted by dlorde View Post
    I suppose you could have called it 'Messenger'.
    You're right! How could I have missed that: he wanted a 'messenger' not a 'message'. Silly me

    Quote Originally Posted by dlorde View Post
    The most important single aspect of software development is to be clear about what you are trying to build...
    B. Stroustrup
    On queue as always

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured