This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes ASCII problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ASCII problem" Watch "ASCII problem" New topic

ASCII problem

Jake Cirino

Joined: Jul 27, 2012
Posts: 17

I have this, where I'm trying to input 2 ASCII characters, a plus/minus sign (it works) and a divide sign, however the divide sign is getting an error. Why is this?

PS: This is a snippet of code, I know there is no class.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38049
What error? We can only help if you tell us the details.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

But you declare it as dIV ??

It is sorta covered in the JavaRanch Style Guide.
subject: ASCII problem
Similar Threads
Packed decimal conversion - Java
switch statement
simple doubt on char
Ascii Values?
how to throw my own exception?