Results 1 to 5 of 5
  1. #1
    surenq1 is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default Input output without string class

    Hello friends this is the question asked to my friend in interview



    how to input and output without string class in java...;)

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by surenq1 View Post
    Hello friends this is the question asked to my friend in interview

    how to input and output without string class in java...;)
    Tell those morons who asked those stupid questions to leave your friend alone.

    kind regards,

    Jos

  3. #3
    berkeleybross's Avatar
    berkeleybross is offline Senior Member
    Join Date
    Feb 2010
    Location
    England
    Posts
    187
    Rep Power
    5

    Default

    I agree with JosAH its a pretty stupid question.

    However, i suppose they are wanting you to make an array of chars - basically what a string is. You can read them using data input stream readChar() and output them using a print stream.

    It would be awkard to manipulate them though, Strings make it a lot easier.

    Berkeleybross

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,435
    Rep Power
    25

    Default

    how to input and output without string class
    Programs do not need Strings. You can use only numbers.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Norm View Post
    Programs do not need Strings. You can use only numbers.
    Who needs numbers? Real programs crunch bits only.

    kind regards,

    Jos

Similar Threads

  1. Replies: 7
    Last Post: 02-24-2010, 08:00 PM
  2. help with data output, input
    By collin389 in forum New To Java
    Replies: 3
    Last Post: 11-11-2009, 05:34 PM
  3. Replies: 1
    Last Post: 08-04-2009, 12:48 PM
  4. Single XSD Creation for input/output
    By lavanya82 in forum XML
    Replies: 0
    Last Post: 03-13-2009, 12:02 PM
  5. Java, output string, getting correct output? HELP!
    By computerboyo in forum New To Java
    Replies: 2
    Last Post: 02-25-2009, 11:44 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
  •