Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Today at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
JAVA LESSON 1.0.1.1
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="ravicplk" data-source="post: 1994403" data-attributes="member: 54446"><p><strong>Hello there...guys and girls sorry for the late lesson. The lesson was late bcoz of the things happened in EK. I also shocked by this situation. Anyway I hope those problems will be solved soon. So lets begin our lesson..</strong></p><p><strong>So u built u r first java application.. I hope that all of u got it right. But the thing is u wrote the program from copying what I gave to u. But when u are in IT industry u have to built up u r program of u r own....</strong></p><p><strong>Let's see what u write in that program. </strong></p><p></p><p></p><p><span style="font-size: 18px"><strong>/*This is a simple java program.</strong></span></p><p><span style="font-size: 18px"><strong>Save this file as hello.java</strong></span></p><p><span style="font-size: 18px"><strong>*/</strong></span></p><p><span style="font-size: 18px"><strong>class hello</strong></span></p><p><span style="font-size: 18px"><strong>{</strong></span></p><p><span style="font-size: 18px"><strong>public static void main(String args[])</strong></span></p><p><span style="font-size: 18px"><strong>{</strong></span></p><p><span style="font-size: 18px"><strong>System.out.println("Ayubowan Elakiri");</strong></span></p><p><span style="font-size: 18px"><strong>}</strong></span></p><p>}</p><p></p><p>Ok. above we have the thing u wrote in u r first progrm.</p><p>Take this part</p><p><span style="font-size: 18px"><strong>/*This is a simple java program.</strong></span></p><p><span style="font-size: 18px"><strong>Save this file as hello.java</strong></span></p><p><span style="font-size: 18px"><strong>*/</strong></span></p><p><strong>This part is the comment part. This part does not affect the program. But when u are in the IT field u must give a comment about ur application. A multi line comment starts with a /* and ends with */ .</strong></p><p><strong>If u ae going to give a single line comment u have to start with // and u have to end that with the same //.</strong></p><p><strong>OK..Thats about the comment.</strong></p><p><strong>next part. </strong></p><p><strong><span style="font-size: 18px"><strong><strong><strong><strong><strong>class hello</strong></strong></strong></strong></strong></span></strong></p><p><strong>Ok. I know what is in u r mind..</strong></p><p><span style="font-size: 15px"><u></u></span></p><p><span style="font-size: 15px"><u><strong>What is a class....</strong></u></span><strong></strong></p><p><strong>hmmmm many tutorials and books will explain this in very complicated way..but the thing is we cant understand. So its easy to understand it with a real life example. </strong></p><p><strong>So u guys have mobile phones neeee...I think asking that is a useless thing...Almost all have mobile phones neeeeee....so what u got hmmm sony ericsson W800 ..or Nokia 95...he heeee any one got Nokia 1100...that one is a good one neeee... Ok now those are some mobile phones.</strong> <span style="font-size: 15px"><strong>BUT THEY ALL FALL IN TO ONE MAIN CATEGORY. WHICH IS MOBLIE PHONE CATEGORY. ALL THOSE PHONES BUILT FROM THE SAME SET OF BLUPRINT. SO THAT BLUE PRINT IS CALLED A CLASS.</strong></span></p><p></p><p><span style="font-size: 18px"><strong> A class is the blueprint from which individual objects are created.</strong></span> </p><p>(more info on this will be on next lesson)</p><p></p><p><span style="font-size: 15px"><strong>{</strong></span></p><p><span style="font-size: 15px"><strong>public static void main(String args[])</strong></span></p><p></p><p>above one defines the main method of the program..From this point onwards the program is starting to run.</p><p><span style="font-size: 18px"><strong></strong></span></p><p><span style="font-size: 18px"><strong>System.out.println("Ayubowan Elakiri");</strong></span></p><p><strong>this is the only statement executed in this program...it print the line Ayubowan Elakiri..</strong></p><p><strong>he heeeeeee..PRINT..not through the printer..through the monitor.</strong>.</p><p></p><p><strong>sooooooooo time to go..hope u understand u r first java apllication..</strong></p><p><strong>NEXT LESSON=DATA TYPES AND VARIABLES(IMPORTANT ONE)</strong></p></blockquote><p></p>
[QUOTE="ravicplk, post: 1994403, member: 54446"] [B]Hello there...guys and girls sorry for the late lesson. The lesson was late bcoz of the things happened in EK. I also shocked by this situation. Anyway I hope those problems will be solved soon. So lets begin our lesson.. So u built u r first java application.. I hope that all of u got it right. But the thing is u wrote the program from copying what I gave to u. But when u are in IT industry u have to built up u r program of u r own.... Let's see what u write in that program. [/B] [SIZE="5"][B]/*This is a simple java program. Save this file as hello.java */ class hello { public static void main(String args[]) { System.out.println("Ayubowan Elakiri"); }[/B][/SIZE] } Ok. above we have the thing u wrote in u r first progrm. Take this part [SIZE="5"][B]/*This is a simple java program. Save this file as hello.java */[/B][/SIZE] [B]This part is the comment part. This part does not affect the program. But when u are in the IT field u must give a comment about ur application. A multi line comment starts with a /* and ends with */ . If u ae going to give a single line comment u have to start with // and u have to end that with the same //. OK..Thats about the comment. next part. [SIZE="5"][B][B][B][B][B]class hello[/B][/B][/B][/B][/B][/SIZE] Ok. I know what is in u r mind..[/B] [SIZE="4"][U] [B]What is a class....[/B][/U][B][/b][/SIZE][B] hmmmm many tutorials and books will explain this in very complicated way..but the thing is we cant understand. So its easy to understand it with a real life example. So u guys have mobile phones neeee...I think asking that is a useless thing...Almost all have mobile phones neeeeee....so what u got hmmm sony ericsson W800 ..or Nokia 95...he heeee any one got Nokia 1100...that one is a good one neeee... Ok now those are some mobile phones.[/B] [SIZE="4"][B]BUT THEY ALL FALL IN TO ONE MAIN CATEGORY. WHICH IS MOBLIE PHONE CATEGORY. ALL THOSE PHONES BUILT FROM THE SAME SET OF BLUPRINT. SO THAT BLUE PRINT IS CALLED A CLASS.[/B][/SIZE] [SIZE="5"][B] A class is the blueprint from which individual objects are created.[/B][/SIZE] (more info on this will be on next lesson) [SIZE="4"][B]{ public static void main(String args[])[/B][/SIZE] above one defines the main method of the program..From this point onwards the program is starting to run. [SIZE="5"][B] System.out.println("Ayubowan Elakiri");[/B][/SIZE] [B]this is the only statement executed in this program...it print the line Ayubowan Elakiri.. he heeeeeee..PRINT..not through the printer..through the monitor.[/B]. [B]sooooooooo time to go..hope u understand u r first java apllication.. NEXT LESSON=DATA TYPES AND VARIABLES(IMPORTANT ONE)[/B] [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom