+ 7
Need java help!!!
is there any built in function/method to convert binary, octal and hex to decimal in Java.
26 Answers
+ 13
I don't understand Brad's posts. They seem to belong to another question. But Dayve is right if your values are binary, oct and hex values. If you just save the values to a String, use Integer.valueOf to convert to decimal.
You don't need an import, because class Integer is part of the lang package, that is always accessible.
+ 10
using Integer.parseInt() method.
Found on Google:)
+ 10
@Brad
Ok, you've had your fun. If you're referring to code at the playground, just leave a comment there.
+ 10
OK, Brad. Then I apologise. *silentmode:on*
+ 8
@Ajay yes import java.util.*; package
+ 7
I'll trying it now. thanks @Dayve
+ 7
@Brad Rogers,
sorry I'm not understand it? Please explain me.
ajay can you add in the pictures and video to the blue box in the curve i posted?
+ 7
Hey @Dayve, is this method requires any package to be imported?
+ 6
yes,i can made it easily. but wanna to know, in Java for this purpose built-in function is available or not?
+ 6
SORRY @Brad Rogers, I know you are tying to help, but I'm unable to understand, what you are saying?
+ 1
can you fix the code? i pulled from your sets
+ 1
you could code a conversion method to compute the changes you require
+ 1
i only have one code displayed
0
0000=0/ 0001=1 /0010=2 /0100=3 /0101=4 and when you type the octal just convert the numbers
0
ajay can you add in the pictures and video to the blue box in the curve i posted?
0
its a header display for a game set you could use in your game
0
your users could simply click the header to pop to main screen for display
0
main screen under header
0
main screen will be where all operations are handled
0
game,text,video viewing,galleries