Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting to binary and hex ?!?!?!?!?!?!

 
Jodi Clackers
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ppl!

Can someone pleeeease point out what im missing in the following code? Im trying to create an application which converts to binary and hex.



Ta

 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jodi,

Welcome to JavaRanch!

Which part of the code is giving you difficulties? What are you expecting it to do that it's not doing? Are you getting exceptions? It would be easier to help you if you can be more specific in stating your problem.

Jules
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

From your code it isn't clear whether you like to process on doubles or on ints.

Read and learn about Layoutmanagers.
A variable 's = " label ";' isn't the right way.
The field for binary-format is much to small.

Use the 'printStackTrace ()' at least for code in progress, to find the source of errors.

Keep your indentation in order, which makes '// end class' comments needless.
Get an appropriate editor to assist you in that job.
SciTe might be a good, free and lean one for windows.
 
Jodi Clackers
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thank you for ur reply Stefan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic