Would someone please be kind enough to explain the purpose of the question mark and colon in this program? Thank you.
Code:
import java.util.Scanner;
public class DivisibleFiveOr6 {
public static void main(String [] args) {
//declare variable
int count = 1;
//processing and output
for (int i = 100; i <= 1000; i++)
if (i % 5 == 0 && i % 6 == 0)
System.out.print((count++ % 10 != 0) ? i + " ": i + "\n");
}
}

