<font color='#000000'>Thanx for the help and the reminder Sara
Well i was gonna go over these things just after getting
the signal of acceptance of this subject...and here it
lights up by your and Fatat al Sharq's Comments
What does the every typical code consist of
1/Class : Unlike other programming languages , Java
Require the user to put the code withen a class named
by him/herself.....so what is a class ...it is basically a
name and it is the basic element of any java program
and every other thing is to be included inside it
the one i provided above is named MyFirstClass...and
here is one more thing .... the name of the class must
match the name of the file that contains your code
so if you named the file as BinDubai.java you will have
to start your code with public class BinDubai
and that is the first line of code in every program you
write....the comes the { or the curly bracket
which will have to be closed with another } at the very end
of your code which means that every other thing inside
those brackets belongs to the BinDubai class ...that is
all for class for now
then comes another very important thing
the main method or....public static void main(String [ ] args)
that is the place where the program will start excution
or will basically will give you some thing and then {
this means this is the start of the main method and
as well as for the class it has to be closed with another}
for the time being we want to just print a message saying
Sallam To All Members in BinDubai
so what we will do that we will type
System.out.println("Sallam To All Members in BinDubai");
and notice that every statement has to end with a ;
and every statement is case-sensetive so follow what
is written exactly but not for the closing (( because this
writing panel is Arabic oriented so it does not show it
correctly as it is suppose to be in English()
so now from the experience in the first lesson and this
one , you dhould be able to write a prgram that prints
a welcome message in MS-DOS command window
so try this one
public class BinDubai
}
public static void main(String [ ] args) ;
}
System.out.println("Hello Bindubai members");
{
{
Note : if you are really interested in learning the language
i will work with you step-by-step insha'ALLAH so do not
hesitate to ask any question at any time .....my e-mail is
qmaqma@hotmail.com...i check it almost every two
hours while i am awake ...so send any question or
problem and expect the answer to be in English
because i do not have ArabicKeyboard now , but i can
read and understand Arabic much better than English
So excuse me once again
Finally, if somebody feels this is useless or meaningless
please let me know and i will stop it imeadiately and we
can switch to learn another language like SQL or HTML
Sallam To All now.....................:)</font>
مواقع النشر (المفضلة)