This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Game Development and the fly likes An int Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Game Development
Reply locked New topic

An int

Fernando hiar

Joined: Jan 11, 2008
Posts: 29
The value is an int, i´ll put a body snake inside of array e I have a variable tail and the head the rest is the body I´ll put a variable tail in i and I did the expression, I want to know what´s this expression does: i = (i+1) % MAX_POINTS, the max points is the body snake and i is the tail snake..... i want to know because I get the rest of division, but what´s behave in the JPanel this expression.

Thank you;
Bert Bates

Joined: Oct 14, 2002
Posts: 8803
Wow Fernando,

I'm lost

Can you show us your code?

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

possible cross post:

My Website: [] Cool your mind:[] My Sally:[]
Bert Bates

Joined: Oct 14, 2002
Posts: 8803
Hi Fernando,

Please avoid posting the same question twice - it makes it hard for everyone else to work with you.

I'm going to lock this one up, and let the discussion continue in the other thread.

It is sorta covered in the JavaRanch Style Guide.
subject: An int
Similar Threads
Extern Keyword?
Games in java
Exception: java.lang.StackOverflowError
How do I save a variable value -Unsolved-