• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Thank you for ur reply Stefan
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic