posted 5 years ago
Q. Given an array of integers, calculate the fractions of its elements that are positive, negative, and are zeros. Print the decimal value of each fraction on a new line.
The output has to be in 6 decimal points.
Problem: It's showing me compile time error. "Solution.java:38: error: cannot find symbol
System.out.println(df.format(result1));"
The problem is in the print of results. Can you please give me a hint on how to overcome this issue?