Java danuma bedaganna kamathi aya innawada?

policeman

Member
May 15, 2009
68
0
0
Java කියන්නෙ open source Language එකක්. Java වල Setup file එකේ ඉදන් coding වලට වෙනකම් හැම දේම Internet එකේ තියෙනව.

මේක බලන්න. Java Documentation

Java documentation වල Java වල තියෙන හැම මගුලම දාල තියෙනව.
එහෙම Language එකක් සල්ලි වලට උගන්නන Institute කරන්නෙ සාධාරන වැඩක්ද?
Advanced programing සල්ලි වලට කලාට කමක් නැහැයි කියමුකො.

ඒත් Basics ??
කොච්චර අසාධාරනද?????

don't misunderstand machan although sun produce there program as a free and open source one they earn by using other ways like publishing exams like SCJP then what will happen we teach for money.(nikan igannuwa kiyala nikan salary nogena wada karanne nane.)
 

fox

Member
Feb 7, 2008
3,111
33
0
ko ane meka karagena yanne nadda? mama me balan inne java ayanne idan saralawa igena ganna
 

NipunaDDDD

Well-known member
  • Jan 16, 2009
    1,556
    120
    63
    ko ane meka karagena yanne nadda? mama me balan inne java ayanne idan saralawa igena ganna

    Machan Simple widiyata Study karanda nam Tiyana Hodama Book eka tama

    Head First Java

    Eka Download karala Balapan :yes:

    Etakota ubata aye Me thread Eka Start Wenakota yamak Issarahata Igena gena Hitiyeki. Eka ubata Study karanda lesi wey
     

    fox

    Member
    Feb 7, 2008
    3,111
    33
    0
    Machan Simple widiyata Study karanda nam Tiyana Hodama Book eka tama

    Head First Java

    Eka Download karala Balapan :yes:

    Etakota ubata aye Me thread Eka Start Wenakota yamak Issarahata Igena gena Hitiyeki. Eka ubata Study karanda lesi wey
    ela machan mama dl karala balannam eka. thanks
     

    Suvin1122

    Well-known member
  • Feb 28, 2009
    12,517
    1,018
    113
    Elakiri Server....
    අපිට Java කරන්න IDE software එකක් ඕනි.මම කරන්න හිතාගෙන ඉන්නෙ NetBeans IDE වලින්. කට්ටියට සම්පූර්ණ software එක download කරගන්න පුලුවන්ද?
    ඒකෙ size එක 318 MB වෙනවා.
    නැත්ත්ම් මම 5MB කෑලි වලට කඩලා upload කරන්නද?

    Me dawas deke sahodaraya pahatha thiyana softwear tika dload karagandakoo.. Guruthuma apuwama ithuru tika kiyala dei... ;););););)


    JDK
    http://www.java.com/en/download/index.jsp

    Notepad++
    http://notepad-plus.en.softonic.com/

    NetBeans IDE (latest 6.9.1)
    http://netbeans.org/downloads/index.html

    Net beans wala complete pak eka gaththoth anagathayata hondai... Full pack eka 319MB ne... Onna ohe dl karala daanda....;);););)


    Machan NetBeans lesi unata..java igena ganna nam mama recomend karanne simple text editor ekak...Notepad,notepad++ or gedit.
    notepad++ and gedit(ubuntu) colours walin pennana nisa ewa hondai.
    NetBEans,eclipse wage softwares use kalama danna java tikath amathaka wenawa.
     

    NipunaDDDD

    Well-known member
  • Jan 16, 2009
    1,556
    120
    63
    Machan NetBeans lesi unata..java igena ganna nam mama recomend karanne simple text editor ekak...Notepad,notepad++ or gedit.
    notepad++ and gedit(ubuntu) colours walin pennana nisa ewa hondai.
    NetBEans,eclipse wage softwares use kalama danna java tikath amathaka wenawa.

    Eka Atta. :yes:
     

    droid

    Member
    Dec 25, 2010
    134
    8
    0
    Ubuntu wala Java 6 SE (JDK) eka install karaganna apt-get eken me packages install karaganna... :nerd:

    sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-bin

    Or use the Ubuntu Software Center. :lol:

    Mama IDE ekata NetBeans use karanne na dan. Eclipse thama matanam honda. Ekath Ubuntu Software Center eke thiyanawa. :dull:

    ela wadak.. digatama karagena yanna. math thama learning machang. refer O'REILLY: HEAD FIRST JAVA as a secondary book apart from your lecturer's note.
     

    azam426

    Member
    Oct 23, 2007
    1,168
    106
    0
    Pitasakwala, Sri Lanka.
    /*
    FileName: ATEST16.java
    The output of this example is as follows:
    Entered the testcase
    Synchronize to prevent access to shared data
    Create/start the thread
    Thread Thread-1: Entered
    Thread Thread-2: Entered
    Wait a bit until we're 'done' with the shared data
    Thread Thread-3: Entered
    Unlock shared data
    Thread Thread-1: Start critical section, in synchronized block
    Thread Thread-1: End critical section, leave synchronized block
    Thread Thread-2: Start critical section, in synchronized block
    Thread Thread-2: End critical section, leave synchronized block
    Thread Thread-3: Start critical section, in synchronized block
    Thread Thread-3: End critical section, leave synchronized block
    Wait for the threads to complete
    Testcase completed
    */
    import java.lang.*;


    public class ATEST16 {
    public final static int NUMTHREADS = 3;
    public static int sharedData = 0;
    public static int sharedData2 = 0;
    /* Any real java object or array would suit for synchronization */
    /* We invent one here since we have two unique data items to synchronize */
    /* An in this simple example, they're not in an object */
    static class theLock extends Object {
    }
    static public theLock lockObject = new theLock();

    static class theThread extends Thread {
    public void run() {
    System.out.print("Thread " + getName() + ": Entered\n");
    synchronized (lockObject) {
    /********** Critical Section *******************/
    System.out.print("Thread " + getName() +
    ": Start critical section, in synchronized block\n");
    ++sharedData; --sharedData2;
    System.out.print("Thread " + getName() +
    ": End critical section, leave synchronized block\n");
    /********** Critical Section *******************/
    }
    }
    }

    public static void main(String argv[]) {
    theThread threads[] = new theThread[NUMTHREADS];
    System.out.print("Entered the testcase\n");

    System.out.print("Synchronize to prevent access to shared data\n");
    synchronized (lockObject) {

    System.out.print("Create/start the thread\n");
    for (int i=0; i<NUMTHREADS; ++i) {
    threads = new theThread();
    threads.start();
    }

    System.out.print("Wait a bit until we're 'done' with the shared data\n");
    try {
    Thread.sleep(3000);
    }
    catch (InterruptedException e) {
    System.out.print("sleep interrupted\n");
    }
    System.out.print("Unlock shared data\n");
    }

    System.out.print("Wait for the threads to complete\n");
    for(int i=0; i <NUMTHREADS; ++i) {
    threads.join();
    }
    catch (InterruptedException e) {
    System.out.print("Join interrupted\n");
    }
    }

    System.out.print("Testcase completed\n");
    System.exit(0);
    }

    }