What is wrong with the code fragment below, which is intended to add the numbers from 1 to 4 together and print out the result, which should be 10
int sum = 0;
for (int i = 1; i < 4; i++)
{
sum = sum + i;
}
System.out.println("sum = " + sum);
There are not hints for this question