Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Algo for number systems (bin,hex,oct)

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Algo for number systems (bin,hex,oct)

    is there an algorithm for converting

    oct to dec+hex+bin
    hex to bin+dec+oct
    bin to dec+oct+hex


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Algo for number systems (bin,hex,oct)

    The Integer class has methods for doing some of the conversions.

    Are you talking about converting one String to another String?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Algo for number systems (bin,hex,oct)

    Quote Originally Posted by Norm View Post
    The Integer class has methods for doing some of the conversions.

    Are you talking about converting one String to another String?
    hi norm yes im talking about converting mainly, you see im quite doing a proj that converts the numbers to bases 2,8,10,16 my problem is that when i convert them or rather after showing the answer, it should also display the solution/process it has been thru, I've quite finished the decimal part, i could show the codes if you want to

Similar Threads

  1. [SOLVED] O(log n): a simple question for Logarithm in Data structures & Algo
    By chronoz13 in forum Algorithms & Recursion
    Replies: 1
    Last Post: September 7th, 2012, 08:20 AM
  2. How to Pass Hex number as Argument to main
    By divix in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: April 2nd, 2012, 06:37 AM
  3. [SOLVED] Bucket or Bin Sort
    By itispj in forum Java Theory & Questions
    Replies: 1
    Last Post: October 15th, 2011, 06:14 PM
  4. Placing files in jre bin...
    By sulaiman2043 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 29th, 2010, 03:55 AM