Results 1 to 4 of 4
  1. #1
    eel
    eel is offline Member
    Join Date
    Sep 2010
    Posts
    36
    Rep Power
    0

    Exclamation Help with message class

    May I know how to create message class in order to store input data from the command line, so that the output will come from this class?

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    Maybe, you can create a class that uses a ByteArrayOutputStream, where things that get written to System.out instead would go into this ByteArrayOutputStream, which you could then later have it output.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,585
    Rep Power
    25

    Default

    class in order to store input data from the command line
    That sounds like what the Scanner class can do.

    output will come from this class
    What output? How is it generated?
    Usually you send output to a class.

  4. #4
    eel
    eel is offline Member
    Join Date
    Sep 2010
    Posts
    36
    Rep Power
    0

    Default

    create the PMC that prompts user for typical email fields and writes SMTP protocol messages to an output file.

Similar Threads

  1. Message On Mobile
    By amitabh in forum NetBeans
    Replies: 3
    Last Post: 07-08-2010, 01:38 PM
  2. Replies: 6
    Last Post: 06-04-2010, 08:43 PM
  3. Semantic Error: Message not understood by class
    By JVassie in forum New To Java
    Replies: 5
    Last Post: 04-15-2010, 02:39 PM
  4. Replies: 8
    Last Post: 07-22-2009, 01:16 AM
  5. Please wail Message in jsp
    By amar.java in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-02-2008, 12:29 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
  •