Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in Java using feet and inches

 
stephanie ruiz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Im really confused on how to put " and ' in java.
For example:

I want to put: 32' 6"
then: 15' 11"
and get: 16' 7" <- output
I want the output to have both feet and inches and I also want to be ble to input feet and inches.

I cant get it to work, I was told to put "\"" in order to get ", and put "'" to get ', but all Im getting is an error I dont even know were to put the ' and " I really need help with this.
I really appreciate any help with this.
This is what I have so far:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posting code as a JPG image isn't the best way to do it. Please post as text and use code tags. Please read this for more information.

You can go back and change your post to add the code and tags by clicking the button on your post.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48976
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Code tags, as Bear said, please, not colours.

Try this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic