reset password
Author Message
CSr_esco525
Posts: 15
Posted 21:41 Oct 15, 2016 |

Hello to whom may read this,

 

So on the homework problem that contains a menu, decimal, and binary inputs, I noticed that the instructions were asking to only use specific tools:

"You are NOT allowed to use any built in Java methods to do the conversions. You must use loops to mathematically calculate the conversions"

I am a bit confused, so we can not use methods like ".charAt(), .length(), etc."? If NOT, then which methods are not allowed?

 

Thank you for your response,

kknaur
Posts: 540
Posted 10:32 Oct 16, 2016 |

I believe Java has methods that will take a binary or base 10 number and convert to the opposite automatically.  THESE you are not allowed to use.  If you need to use other methods, i.e. methods from the String class that is ok.