• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying Results in a Message Box  RSS feed

 
Rivers Coffman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. I'm a beginner level programmer and I'm trying to figure out how to display results in a PLAIN_MESSAGE. My program is converting hex to decimal and displaying the results. Here's the code:

 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Bases run from 2 to 36 in Java®, not 37 as you have written. Try \u2264 or another symbol from this Unicode page instead of <=; it will give a much nicer display.
You can find out about JOptionPane in the Java Tutorials; I think you want the showMessageDialog method. Why are you using JOptionPane? It is a very old‑fashioned method for keyboard input.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!