This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 37953
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 ??

I agree. Here's the link:
subject: ASCII problem
Similar Threads
Packed decimal conversion - Java
switch statement
simple doubt on char
Ascii Values?
how to throw my own exception?