i tried different points, and did not see anything out of ordinary.
should i println() in other classes as well?
could you tell me what i'm i looking for in the output?
I'm not sure if i need...
Type: Posts; User: ykolin
i tried different points, and did not see anything out of ordinary.
should i println() in other classes as well?
could you tell me what i'm i looking for in the output?
I'm not sure if i need...
when i execute the StartingClass.java or Snake.java i have a game Snake. when the head of the Snake hits its body then i have an output on Console with error on line 136:
x= number
y= number...
yes, output is
value of Point p = x=140, y=140
and
this is the point addPoint p= x=130, y=140
I have a separate Point.java class in the same package, maybe it would be of help
package exam1;
/**
* Just a simple object that represents a point in the game
*
*
this is the print output from line 120
this is the point p - :exam1.Point@64b28abf
if( p != null && ( score % difficulty ) == 0 ) {
addPoint( p );
System.out.println ("this is the point...
Norm,
Thank you for your reply, unfortunately i have no idea what i'm looking at these lines.
any other guidance?
so far this is my code in my class for steps 3, 4 and 5.
import exam1.GameException;
import exam1.Snake;
import java.util. Scanner;
public class MyclassA06 { // 2. Create a class named...
"You need to create an object of the class in which your method to be called is present."
i thought that i have created an object with parameters of 200, 200, 800, 600, am i wrong?
Snake Snake1 =...
Thank you Greg,
i will try my best to follow all guidance
I'm simply looking for any guidance for resolution to a project i was given. Any help is greatly appreciated. please let me know if i need to show StartingClass and Snake classes for more info.
...
Greetings to all.
Not sure what is the point of this introduction, but i hope people read and reply to them.
My native language is russian thou for the past 12 years i have been using english...