The problem is with this if statement:
However, I tried to make it print instead of println, but I got errors and the code would not compile...
if (totalNumbers % N == 0) {
...
Type: Posts; User: oracleman
The problem is with this if statement:
However, I tried to make it print instead of println, but I got errors and the code would not compile...
if (totalNumbers % N == 0) {
...
Heres my code:
import java.util.*;
import java.io.*;
public class Ch7Ex11 {
public static final int N = 10;
@SuppressWarnings("unused")
private static final int getNumber = 0;
Hello,
I was having some problems with my Java code. The program writen below is for a class. The question asks:
In this exercise, you are asked to rewrite the Programming Example Classify...