André Asantos wrote: Does anybody get to interpret this following code: ->
leroy tsruya wrote:
Ravi Kiran V wrote:Are you not handling Guest users ??
Your coding is as such that :
If a User opens a Web page you cant create a Session for him , until he logs into the web site .(He may open the web page just to browse , without logging in )
David Newton wrote:
Virendrasinh Gohil wrote:OBJECT-ORIENTATION is the only answer.
Hardly, but it's appropriate in some cases.
From the code, it seems like, you are suffering from C-style-coding-syndrome. These detail can instead be wrapped into single clss and can make it easy to track. (May be array of objects of that class having details like, name, scholarship (boolean), gpa, programme, gender, etc...)
Ween Li wrote:Hi
How do i get the list of name[i] from the loops?
Megs Maquito wrote:Hmmm. that seemed to do the trick here's the result:
L is 20 i is 0
L is 140 i is 13
outside the for loop
Question is: why would i need to put something outside the for loop? is the i % == 2 somehow telling the class to repaint itself or is it the sequence after the JFrame declaration in main() method? I have other classes that have a for loop that does not have a statement outside the for loop and works perfectly. Here's an example:
I could put the for loop in the main method but I want the drawing to be repainted if i resize the JFrame, thus I put the for loop in the paintComponent() method.