Get all updates of Java4s
Follow Us: Email Newsletter

Check the Character/First Character Of a String is Number or Not in Java

Core Java » On Oct 14, 2012 { 4 Comments } By Sivateja

Let us see how to find whether the given Character of a String is a number or first Character of any String is a number or not ?

CharNumber.java

Output

‘j’ is not a number
‘a’ is not a number
‘v’ is not a number
‘a’ is not a number
‘4’ is a number
‘s’ is not a number
First character is not a number..!

You Might Also Like

  ♦ About Author ♦

Java4s_Author
sivateja@java4s.com
Full Stack( Java/J2EE & UI/UX ) Developer and founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog. Sign-up for the Email Newsletter for your daily dose of Java tutorials.

Comments

4 Responses to “Check the Character/First Character Of a String is Number or Not in Java”
  1. There is a lot of very useful knowledge in your post to help me solve problems.I enjoy reading your post and hope to see more.

  2. venkatesh says:

    when to use equals() method and compareTo() method can u explain.

  3. suseela says:

    i couldn’t found multi thread concept in (core java) java4s

  4. vidya says:

    what is difference between string,string buffer,string builder concepts

Name*
Mail*
Website



By posting your answer, you agree to our comments policy.
What would you like to learn today?
Browse these popular technologies
Hibernate spring struts Servlets ajax Log4j jQuery Json Core Java Web Services AngularJs
Most Recent Tutorials
Hibernate_Logo Hibernate Recent Posts Spring_Logo Spring Recent Posts Struts_Logo Struts Recent Posts
Useful Links Current & UpComing Tutorials
Upcoming
  Web Services [ SOAP ], JSP
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2016 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.