learn java
The moose likes Beginning Java and the fly likes Converting to binary and hex ?!?!?!?!?!?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting to binary and hex ?!?!?!?!?!?!" Watch "Converting to binary and hex ?!?!?!?!?!?!" New topic

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

Jodi Clackers

Joined: Sep 04, 2004
Posts: 4
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.


Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
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.

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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

Joined: Sep 04, 2004
Posts: 4

Thank you for ur reply Stefan
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Converting to binary and hex ?!?!?!?!?!?!