[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Pic is for attention, also caturday. Hey fellars, so I'm

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 6
Thread images: 2

File: 1355437343774.jpg (3KB, 125x115px) Image search: [Google]
1355437343774.jpg
3KB, 125x115px
Pic is for attention, also caturday.
Hey fellars, so I'm trying to create this program in java that's supposed to keep track of how much stock there is. Like if you wanted to cook pancakes, you would click a button that said "pancakes" and 1xmilk, 2xtimes egg would be removed from the stock everytime you click the button, the problem is that I have to declare the integers inside the Actionperformed, so everytime I click the button the original values reset, does any kind soul have the answer?

Also, is there perhaps a better board for this?
>>
>>57818259
We're not doing your homework for you, you dumb idiot.
>>
How about don't declare the integers inside the function
>>
>>57818267
haha whoa, it's not homework, I'm doing it for work (not a programming job)
>>
Store the total quantity in a Javadb (or text file or global variable) and manipulate it from there?
>>
File: 1480711935985.gif (774KB, 276x220px)
1480711935985.gif
774KB, 276x220px
>>57818291
>>57819390
This.
Thread posts: 6
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.