corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » java help...


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author java help...
Alex
Member

Registered: 9th Feb 03
Location: Nottingham
User status: Offline
12th Dec 05 at 10:45   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 11:25   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 11:49   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 11:56   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 12:08   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 12:16   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 12:22   View User's Profile U2U Member Reply With Quote

either that or in bed sleeping
Doug
Member

Registered: 8th Oct 03
User status: Offline
12th Dec 05 at 12:31   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 12:35   View User's Profile U2U Member Reply With Quote

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
12th Dec 05 at 12:37   View User's Profile U2U Member Reply With Quote

*cough* GEEK DAY *cough*
Alex
Member

Registered: 9th Feb 03
Location: Nottingham
User status: Offline
12th Dec 05 at 12:43   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Sam
*cough* GEEK DAY *cough*


shhhhh
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
12th Dec 05 at 12:46   View User's Profile U2U Member Reply With Quote


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
What Java Compiler Is Standard? Mikorsa16v Geek Day 2 1272
13th Mar 03 at 16:02
by Mikorsa16v
 
Computer help! Happy_2008 Geek Day 7 859
19th Jun 03 at 06:59
by Sam
 
help computer boffs groom Geek Day 33 2904
13th Nov 03 at 21:00
by Tim
 
Play with Kylie CorsaLad16v Off Day 6 172
26th Feb 04 at 08:10
by Adam-D
 
any1 got an ericsson t610 ? troubled_corsa Geek Day 12 259
17th Jun 04 at 18:18
by Jambo
 

Corsa Sport » Message Board » Off Day » Geek Day » java help... 28 database queries in 0.0161600 seconds