Results 1 to 2 of 2

Thread: Valid input

  1. #1
    Dex
    Dex is offline Member
    Join Date
    Mar 2012
    Posts
    29
    Rep Power
    0

    Default Valid input

    How would I check if an input is valid when giving a string of valid integers and operators e.g String s = "0123+-"
    I've looked everywhere and tried writing my own methods but cannot figure it out!

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

    Default Re: Valid input

    How would I check if an input is valid
    What are the rules for determining if an input String is valid or not?
    You will need those before you can write any code.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. How to set valid types for variable
    By SVTermiCobra in forum New To Java
    Replies: 5
    Last Post: 08-08-2012, 06:06 AM
  2. valid java identifiers
    By kulangotski in forum New To Java
    Replies: 7
    Last Post: 01-09-2011, 09:47 PM
  3. Confirming a user is valid
    By Zack in forum New To Java
    Replies: 2
    Last Post: 08-03-2010, 12:07 AM
  4. Valid declarations
    By heat84 in forum New To Java
    Replies: 1
    Last Post: 12-22-2007, 02:29 AM
  5. Help with valid declarations of a float
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 10:28 AM

Posting Permissions

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