Please use simple Java code and comments. No arrays.
Write a program that prompts the user to enter a multi-digit hexadecimal (i.e., base 16) value as a string. The program should output the equivalent decimal value. For example, if the user enters "l1", then the correct output would be 17. If the user enters "1F", the correct output would be 31. For an input of "20", the correct output would be 32. Finally, for "FF", the correct output would be 255. Do not call Integer.parseInt or Integer.valueOf in your solution.