Created
March 1, 2021 11:53
-
-
Save Alkimisti/a09eb0b3bf54ef08529e423d14d31f1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Hexadecimal2Decimal { | |
public static void main(String[] args) { | |
String hex = "ff"; | |
int dec = Integer.parseInt(hex, 16); | |
System.out.println(dec); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment