Thanks @SaiksyApo and @chrm, here more info (copied and pasted)
Landing in progress…
X=2501m, Y=2695m, HSpeed=1m/s VSpeed=-5m/s
Fuel=547l, Angle=-16°, Power=2 (2.0m/s2)
Standard Error Stream:
X: 2501
Y: 2695
hSpeed: 1
vSpeed: -5
fuel: 547
rotate: -16
power: 2
This is for first test. As you see, the output is exactly as the variables avobe.
Landing in progress…
X=6194m, Y=2787m, HSpeed=-105m/s VSpeed=-8m/s
Fuel=594l, Angle=45°, Power=3 (3.0m/s2)
Standard Error Stream:
X: 599
Y: 75
hSpeed: 1
vSpeed: 6298
fuel: 2793
rotate: -103
power: -6
This is for the second test. I copied as is, without changin any part of the code.
Landing in progress…
X=6410m, Y=2798m, HSpeed=-91m/s VSpeed=-3m/s
Fuel=749l, Angle=75°, Power=1 (1.0m/s2)
Standard Error Stream:
X: 6410
Y: 2798
hSpeed: -91
vSpeed: -3
fuel: 749
rotate: 75
power: 1
third test, it is ok…
Landing in progress…
X=600m, Y=2698m, HSpeed=101m/s VSpeed=-3m/s
Fuel=799l, Angle=-75°, Power=1 (1.0m/s2)
Standard Error Stream:
X: -90
Y: 0
hSpeed: 600
vSpeed: 2698
fuel: 101
rotate: -3
power: 799
fourth test, again ( power 799??)
Landing in progress…
X=6344m, Y=2687m, HSpeed=-55m/s VSpeed=-8m/s
Fuel=994l, Angle=45°, Power=3 (3.0m/s2)
Standard Error Stream:
X: 6398
Y: 2693
hSpeed: -53
vSpeed: -6
fuel: 997
rotate: 60
power: 2
fifth and last, this seems ok also.
while (true) {
int X = in.nextInt();
int Y = in.nextInt();
int hSpeed = in.nextInt(); // the horizontal speed (in m/s), can be negative.
int vSpeed = in.nextInt(); // the vertical speed (in m/s), can be negative.
int fuel = in.nextInt(); // the quantity of remaining fuel in liters.
int rotate = in.nextInt(); // the rotation angle in degrees (-90 to 90).
int power = in.nextInt(); // the thrust power (0 to 4).
System.err.println("X: "+X);
System.err.println("Y: "+Y);
System.err.println("hSpeed: "+hSpeed);
System.err.println("vSpeed: "+vSpeed);
System.err.println("fuel: "+fuel);
System.err.println("rotate: "+rotate);
System.err.println("power: "+power);
And, as said before, the debug lines are below the variables declaration
Now, can you, with all patience, explain me what can be the problem here? (I hope this is enough verbose 