Thread
:
retaining values in methods
View Single Post
Nov 30th, 2007, 12:39 PM
#
2
titaniumdecoy
Expert Programmer
Join Date: Nov 2005
Posts: 856
Rep Power:
3
Re: retaining values in methods
You can declare the variable outside the method as a private class variable:
(
Toggle Plain Text
)
private int complete; ... private float proc(int a, int b, boolean state) { ... }
private int complete; ... private float proc(int a, int b, boolean state) { ... }
titaniumdecoy
View Public Profile
Visit titaniumdecoy's homepage!
Find More Posts by titaniumdecoy