octal « decimal « Java Data Type Q&A





1. Hexadecimal and Octal to decimal conversions    coderanch.com

Hi all Consider this question: Given the following code fragment from a class definition, which of the following statements is true? [Check all correct answers] 1. int Aval = 0x65; 2. byte Bval = 065; A) The variable Aval has been initialized with a hexadecimal format literal, and Bval has been initialized with an octal format literal. B) Both Aval and ...

2. Decimal to binary, octal to decimal    java-forums.org

Hello to all! I am new on this forum, and I am quite new to Java too. I am from Slovenia, and I don't speak English very well, so please excuse me for mistakes. Ok, for homework I have to write a program, which convert from decimal to binary and than another program, which convert from octal to decimal. In the ...