Results 1 to 3 of 3
- 11-27-2011, 02:10 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 16
- Rep Power
- 0
converting a given positive integer m to a positional number system in base n
I have hard to understand what i have to do in this excerises, could some make it more clear.Java Code:Write a Java method to convert a given positive integer m to a positional number system in base n (n is in between 2 and 36). The result is a string consisting of digits and lowercase latin letters if needed. public static String toSysString (int m, int n) Example: toSysString (14, 4) == "32"
- 11-27-2011, 02:16 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
Re: converting a given positive integer m to a positional number system in base n
Read the API documentation for the Integer class; there's a method in there that can do the job.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-27-2011, 05:11 PM #3
Member
- Join Date
- Apr 2011
- Posts
- 19
- Rep Power
- 0
Similar Threads
-
Code to convert binary number to base 10 number
By j@y in forum New To JavaReplies: 1Last Post: 10-28-2011, 08:18 AM -
Converting a 2's complement to the proper integer
By Chuklol in forum New To JavaReplies: 1Last Post: 10-10-2011, 05:47 AM -
Testing whether a random number is positive
By mamoonrizwan in forum New To JavaReplies: 3Last Post: 05-07-2011, 08:58 AM -
Converting an integer into a BigInteger
By mzjazzygirl in forum New To JavaReplies: 27Last Post: 09-23-2010, 06:37 PM -
Help with syntax to reverse a positive integer
By sonny in forum New To JavaReplies: 14Last Post: 02-27-2010, 06:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks