• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

simple code problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
i hope everyone is doing well

before i start, i would like to let you know that i am so beginner in Java, i have a homework to do about writing student names and grades, the number of students in given by the user, i tried my best to solve this homework but there is something wrong in my program where i could move further

can you please take a look at my code and tell me what is the problem (i think the problem is to define and initialization method, but i do not know how?

please replay and let me how can i continue my homework

regards
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does the code do now, and how does that deviate from what it is supposed to do?

In the future, please UseCodeTags. It's unnecessarily hard to read the code as it was, making it less likely that people will bother to do so.
 
Abdullah Bukhari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much for your reply
what happens is that the applet shows only the labels and text field for the user to enter the student numbers, and a button to be pressed,
when the user enter the number and press the button, nothing happen after that

and sorry for the code it is below in tags

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the Java Console, there's probably an exception occurring.
 
reply
    Bookmark Topic Watch Topic
  • New Topic