Alex
Member
Registered: 9th Feb 03
Location: Nottingham
User status: Offline
|
basically i need to create a Static variable that goes up by 1 each time, its being used as a serial number in a job class, i just cant think how to do it
any ideas?
|
barry_kellett99
Member
Registered: 19th May 03
User status: Offline
|
A for loop which increases the value by one;
x = x + 1
or just X++
Are you just starting programming?
|
Alex
Member
Registered: 9th Feb 03
Location: Nottingham
User status: Offline
|
lol ive already done a year of it now halfway through the 2nd year, i just hate it and dont remember stuff!
thanks for the help
|
Doug
Member
Registered: 8th Oct 03
User status: Offline
|
Yeah just do as barry said, X++ to increment it
|
Demo
Member
Registered: 27th Sep 01
Location: south wales Drives: astra sri ecoflex
User status: Offline
|
i failed java 3 times on the trot in uni so im of no use to you in this thread whatsoever
|
Doug
Member
Registered: 8th Oct 03
User status: Offline
|
PMSL Let me guess you were out drinking all the time?
|
Demo
Member
Registered: 27th Sep 01
Location: south wales Drives: astra sri ecoflex
User status: Offline
|
either that or in bed sleeping
|
Doug
Member
Registered: 8th Oct 03
User status: Offline
|
Fuck, Just realised i am missing a java lecture now. Gotta go! going to walk in halfway thorugh lol
|
Alex
Member
Registered: 9th Feb 03
Location: Nottingham
User status: Offline
|
this is the 2nd programming lesson ive been to all term so far, monday mornings are never a good time to put things on the timetable
im just to sleepy
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
*cough* GEEK DAY *cough*
|
Alex
Member
Registered: 9th Feb 03
Location: Nottingham
User status: Offline
|
quote: Originally posted by Sam
*cough* GEEK DAY *cough*
shhhhh
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
|