• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create a java program which will differentiate between numbers, characters, special characters  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please guide me how to do code for this in core java
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to work out a few questions before you start, for example.
What is your definition of a letter, or special character?
Where are you going to find the values associated with them?
How are you going to use those characters?
Have you read about characters, for example in the Java Language Specification? (That is not easy to read, but should give you guidance).
 
Ranch Hand
Posts: 4696
8
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you mean ascii, check out a chart like this
i would use the decimal values to figure it out
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!