Home /
Expert Answers /
Computer Science /
solve-in-java-write-a-function-to-display-information-about-an-integer-the-function-must-work-ex-pa272
(Solved):
solve in java
Write a function to display information about an integer. The function must work ex ...
solve in java
Write a function to display information about an integer. The function must work exactly like the following examples. (Note that a digit is an integer between 0 and 9). Note that you only need to put the code of the function in the answer box and nothing else (do NOT put other code of the class in the answer box).
Enr nvammlo.
Java code for above problem // testing class public class Main { // testing main method public static void main(String[] args) { numberInfo(5); numberInfo(-8); numberInfo(0); } // method that need to be implemented public static void numberInfo(int n