Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

significance of the statement "public static void main(String []args)"

  Asked By: Maria    Date: Oct 08    Category: Java    Views: 1213
  

I want to know the significance of the statement

"public static void main(String []args)"
what is the use of 'static'?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Adal Fischer     Answered On: Oct 08

i have got this doubt.. i want to add two nos. i get these two nos.
in two seaprate text fields. I want the result of this addition to
be stored in another separate text field.I didn't know how to do
this..since only strings can be stored in text fields.plz clarify my
doubt.

 
Answer #2    Answered By: Devlan Jones     Answered On: Oct 08

Use the parseInt() method in the Integer object:

String s = "27";
int x = Integer.parseInt(s);

 




Tagged: