The JVM is the key player here... it is going to execute your program... so public static void main is like an accessibility option for the JVM...
public ==> so that the jvm can access your program/class from any where (since it is public as the name suggests)... change it to private and your program wont work... because the jvm cannot access private stuff... and if the jvm cant access the class/program it cant execute it
static ==> so that the jvm does not need to create an object for your class to run your program
void ==> your main function is not going to return any value to the jvm
main ==> this is like the cue music to the jvm... this is the stating point of your program... this is the function that your jvm calls so as to execute your program
im doing GUI that user can edit textboxes.in this my requirement is
(1)name with check box
(2)if user click check box pop window or alert box will appear.in that window i have to display min-value,max-vale,actual value,default value.and two buttons one is update another one is default
3)in this actual value can edit by user if he edits it has to be validate from min& max.
please help me to this GUI.
note:The values will read and wright from xml file i can read and wright those values by dom processor.
In fact, I'm doing this in Java, it's a Maven project and hosted as a web service on GlassFish. The service returns the data in json format. The problem is when the values are null, I have to serialize them as "" or "null". I want to return as just null. However, I still can't find a way.
I am a third year computer science student and have a project to build. I am to build a restaurant reservation system, considering most activities about a restaurant. I can only do basic java. Any ideas on how to implement this idea?
I can only do basic java. Any ideas on how to implement this idea?
You really need to have a good understanding of the use of classes and their methods and properties for such a project. However, the first thing you need to do is work on the actual design of your project. The data store, what information you need to keep, and how you will access it. The inputs, how customers will request reservations. The outputs, how information will be displayed etc. All of that needs to be designed before you can start writing any code.
hi this nagaraj,im doing gui for 4g so i want to read ip address from xml file and it will be display in textbox and if user enters the ip address i want update it in to xml file alredy im using DOM for reading&updating xml file