+ 3

How can i find binary,octal,hex string????

as i do in my program i dont know how d output come so check it my code n den plzzz tell dat how can i find these string??? https://code.sololearn.com/cJMJWNJdTNL3/?ref=app //plzzz answer it i can beleive u all bro do it for me Fata1 Err0r Arun Tomar Gaurav Agrawal Deepak Mittal Mayur Koli Amal Reddy Marella A.Omar

10th Jun 2018, 4:31 PM
Harsh Agrawal
Harsh Agrawal - avatar
9 odpowiedzi
+ 6
Refer to this link to learn how the conversion is done:😉 https://www.sololearn.com/learn/4401/?ref=app
11th Jun 2018, 9:55 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
Can you rephrase the question? I didn't really understand what you're asking for.
10th Jun 2018, 5:26 PM
BlazingMagpie
BlazingMagpie - avatar
+ 2
Oh, base conversions. It's better to look it up with Google for more details, but basically you do division and modulo, you keep in place modulo result and carry over the division result. For Hexadecimal: 180/16 = 11 = B (turn 10-15 to A-F) 180%16 = 4 180 in decimal = B4 in hexadecimal
10th Jun 2018, 5:39 PM
BlazingMagpie
BlazingMagpie - avatar
+ 2
Harsh Agrawal I prefer to use array or concatenation operators . if you use concatenation operators then you need to convert all your resultant values to string and just add all the results. for hexadecimal you can make one more thing like a switch for A,B,C,D,E,F. Always use switch case in these programmes to give a user a menu drive options. Avoid using Inbuilt functions to improve your skills and performance. Good Luck
11th Jun 2018, 3:14 AM
Deepak Mittal
Deepak Mittal - avatar
+ 2
i didn't really understand your question Harsh Agrawal ... But if u want to see binary/hex/octal conversion in java here is my code: https://code.sololearn.com/cM00Zou3pKxv/?ref=app
11th Jun 2018, 11:26 AM
Phäñtøm Phôëñïx
Phäñtøm Phôëñïx - avatar
+ 1
BlazingMagpie can u give me link where i learn dis conversion
11th Jun 2018, 3:34 AM
Harsh Agrawal
Harsh Agrawal - avatar
+ 1
Deepak Mittal bro i just want to learn how to find binary no etc as it is in code i just example to understand my question properly???
11th Jun 2018, 3:36 AM
Harsh Agrawal
Harsh Agrawal - avatar
+ 1
Phantom Phoenix can u xplain me in ur own words so dat can i understand properly???
11th Jun 2018, 12:23 PM
Harsh Agrawal
Harsh Agrawal - avatar
0
BlazingMagpie bro i just want to know that how i find binary no,octal no etc as i also do in my program u can check it der
10th Jun 2018, 5:30 PM
Harsh Agrawal
Harsh Agrawal - avatar