In this tutorial, you will learn the following:
- Integer Class Methods
- Integer.toHexString()
- Integer.toBinaryString()
- Integer.parseInt()
- Integer.max()
- Integer.min()
You would need the following inorder to following this tutorial:
- An Integrated Development Environment(IDE) installed that can run Java (e.g Netbeans, Eclipse)
- JDK 1.X installed on your Pc
- Of course willingness to learn
Difficulty
- Intermediate
Description
In this tutorial, the user enters a value from the console and then the Hexadecimal and Binary Equivalent is being calculated using the toHexString() and toBinaryString() methods respectively.
After which the user enters two numbers and the maximum and minimum values are gotten using the Integer.max() and Integer.min() methods respectively.
Lastly the Integer.parseInt() method is being used to parse a String object into an Integer.
Video Tutorial Link:
Curriculum
Below are a list of related videos that will make you understand this better!
- Understanding Character Class Methods [compareTo(),equals()] in Java using Eclipse IDE
- Understanding Integer Class Methods [Integer.MIN_VALUE(),Integer.MAX_VALUE(),compareTo(),equals()] in Java using Eclipse IDE
NB: This video has only being shared on my Youtube Channel
Tutorial codes can be gotten from this github repository: https://github.com/generalkolo/Javacodes
Posted on Utopian.io - Rewarding Open Source Contributors