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 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting to binary and hex ?!?!?!?!?!?!" Watch "Converting to binary and hex ?!?!?!?!?!?!" New topic
Author

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

Jodi Clackers
Greenhorn

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.



Ta

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.

Jules
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.


http://home.arcor.de/hirnstrom/bewerbung
Jodi Clackers
Greenhorn

Joined: Sep 04, 2004
Posts: 4


Thank you for ur reply Stefan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Converting to binary and hex ?!?!?!?!?!?!
 
Similar Threads
Problem with Sort Method
validating awt textfields
Check Boxes
Check Boxes
linux file access