LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 639 users online 225200 members 984 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
agerask
Peeves: Loud breathers, leg tappers, and liars...
Mood: Plain
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 25 MPM
Christmas Eve
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

validations in java
Replies: 1Last Post Aug. 2, 2006 12:37pm by prettyinpink87
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( riz )


Wealthy Hobo
Reply
how do i do validation in java

i want only the user to insert the letters x and X if not to display a message........actually i dont know how to do a validation in java can some one help

-------
Free Stuff


12:23 pm on Aug. 2, 2006 | Joined: Jan. 2006 | Days Active: 358
Join to learn more about riz Sri Lanka | Male | Posts: 1,443 | Points: 5,300
LiveWire Humor
prettyinpink87


Dairy Product Addict
Reply
Use a if statement.

if (c != 'X' && c != 'x')
System.out.println("Invalid entry. Try again.");

-------
Good morning, and in case I don't see ya,
good afternoon, good evening, and good night!


12:37 pm on Aug. 2, 2006 | Joined: July 2006 | Days Active: 106
Join to learn more about prettyinpink87 South Africa | Bisexual Female | Posts: 225 | Points: 1,440
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic