aidi306 0 Report post Posted November 21, 2008 QUOTE (Firestarter @ Sep 19 2008, 08:13 AM) <{POST_SNAPBACK}>@sh4mJava ni senang dari c++ pasal kebanyakan method dah ada jadi ko buleh guna import je. Ni di panggil sebagai pre define method. Java ni bahasa yang 'straight'. Ko buleh tulis direct dalam BI dan tak banyak simbol yang digunakan. Aku tengah mendalami asas j2ee. Tak abis lagi.Salam,klu awak boleh ajar saye JAVA mmg saye hargai , awak send la code2 asas ker.....bnyak da saye da lupe :-D ... harp awak dpt tlg :-)QUOTE (Si tenang @ Aug 16 2007, 10:13 AM) <{POST_SNAPBACK}>1st ko kena ader matlamat la..contoh nyer untuk aper ko belajar java1.untuk jawab exam jer ker..2. keperluan Industri ker3.Untuk mengajar ker..4.hobi suka2 nak buat program5.or ko budak it yang minat certificate ker5...aper2 yng relevan ler..pastu baru ko boleh terre java style mane ko naksoftware development keratau web development..pastu ko pilih ler coding2 yang relevenkonsep OOP-polymorphism, Inheritance, encapsulation ker semua tue same jer dgn bahas programming lain..okies1st ko kena ader matlamat la..contoh nyer untuk aper ko belajar java1.untuk jawab exam jer ker..2. keperluan Industri ker3.Untuk mengajar ker..4.hobi suka2 nak buat program5.or ko budak it yang minat certificate ker5...aper2 yng relevan ler..pastu baru ko boleh terre java style mane ko naksoftware development keratau web development..pastu ko pilih ler coding2 yang relevenkonsep OOP-polymorphism, Inheritance, encapsulation ker semua tue same jer dgn bahas programming lain..okiesSalam, saye ingin belajar utk keperluan industri....saye nk tahu camne keje dlm industri ni?cmane&contoh2 bende yg kite kene buat? study kt kolej yg simple jer.... so klu awak2 ader ilmu utk di kongsi ..saye hargai sgt2 ... awak email kn kt saye [email protected] , Quote Share this post Link to post Share on other sites
cikdayah 0 Report post Posted November 21, 2008 wah...firestarter dpt penghormatan utk ajor java..sile2..share2 la coding kat cni..sy pun nak blajo gak dgn abg firestarter....leh ek... Quote Share this post Link to post Share on other sites
Firestarter 0 Report post Posted November 21, 2008 Ni aku bagi contoh koding. Ko paham sendiri la. Malas aku nak terang.CODEpackage com.conygre;public class Person { private String name; private String password; public String getName(){ return name; } public void setName(String s){ name = s; } public String getPassword(){ return password; } public void setPassword(String s){ password = s; }}CODEpackage com.conygre;public interface Item { String getTitle(); double getPrice(); String getId();}CODEpackage com.conygre;public class Stock{ private Book[] books; private CompactDisc[] cds; private DVD[] dvds; public Stock() { Initialiser init = new Initialiser(); books = init.books(); cds = init.cds(); dvds = init.dvds(); } public Book[] getBooks(){ return books; } public CompactDisc[] getCds(){ return cds; } public DVD[] getDvds(){ return dvds; } // inner class to initialise the products for the stock class Initialiser { public Book[] books(){ Book[] bookArray = { new Book("The Voyage of the Dawn Treader",4.99,"C.S. Lewis","1"), new Book("Linux Desk Reference",29.99,"Scott Hawkins","2"), new Book("Let the Nations Be Glad",5.99,"John Piper","3"), new Book("Treasure Island",3.99,"Robert Louis Stephenson","4"), new Book("How to Be a Great Guitarist",17.99,"Paul Hunnisett","5"), new Book("Heart of a Hooligan",4.99,"Muthena Paul Alkazraji","6"), new Book("Shogun",12.99,"James Clavell","7"), new Book("The Art of War",4.99,"Sun Tzu","8") }; return bookArray; } public CompactDisc[] cds(){ CompactDisc[] discArray = { new CompactDisc("Is This It",13.99,"The Strokes",11,"9"), new CompactDisc("Just Enough Education to Perform",10.99,"Stereophonics",11,"0"), new CompactDisc("Parachutes",11.99,"Coldplay",10,"a"), new CompactDisc("White Ladder",9.99,"David Gray",10,"b"), new CompactDisc("Greatest Hits",14.99,"Penelope",14,"c"), new CompactDisc("Echo Park",13.99,"Feeder",12,"d"), new CompactDisc("Mezzanine",12.99,"Massive Attack",11,"e") }; return discArray; } public DVD[] dvds(){ DVD[] filmArray = { new DVD("It's a Wonderful Life",7.99,"Frank Capra","f"), new DVD("Crouching Tiger Hidden Dragon",15.99,"Ang Lee","g"), new DVD("Breakfast at Tiffany's",14.99,"Blake Edwards","h"), new DVD("Romeo Must Die",10.99,"Andrzej Bartkowiak","i"), new DVD("Scent of a Woman",17.99,"Martin Brest","j"), new DVD("Snatch",18.99,"Guy Ritchie","k"), new DVD("Scarface",16.99,"Brian De Palma","l") }; return filmArray; } }}CODEpackage com.conygre;public class DVD implements Item{ //Instance variables private String title; private double price; private String director; private String id; //Methods public String getId(){ return id; } public String getTitle(){ return title; } public double getPrice(){ return price; } public String getDirector(){ return director; } //public String[] getFeatures(){ // return features; //} //public void setFeatures(String[] s){ // features = s; //} //constructors public DVD(){} public DVD(String t, double p,String d, String i){ title=t; price=p; director=d; id = i; }} Quote Share this post Link to post Share on other sites
MYNapster 0 Report post Posted November 27, 2008 simple javabeanCODEpublic class SimpleBean { private String message = "No message specified"; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; }}write koding di bawah dlm jsp page utk gunekan javabean kat atasCODE<html><head><titile>Demo resuing java beans in jsp</title></head><center><table border = 5><tr><th>Re using javaBeans in JSP </table></center><p><jsp:useBean id ="test" class="beans.SimpleBean"/><jsp:setProperty name="test" property="message" value="Hello Mat"/><h1>Message: <i><jsp:getProperty name = "test" property="message"/></i></h1></body></html> Quote Share this post Link to post Share on other sites
eizzho3 0 Report post Posted November 28, 2008 JAVA nie sgt interesting sbnarnya...tp aq nie bru 2 bulan berkenalan dgn programming language nie..tue pun time blaja, blur-blur alam gak la.. Quote Share this post Link to post Share on other sites
uncihaitcahi_akasuki18 0 Report post Posted December 17, 2008 QUOTE(Firestarter @ Sep 19 2008, 10:13 AM) <{POST_SNAPBACK}>@sh4mJava ni senang dari c++ pasal kebanyakan method dah ada jadi ko buleh guna import je. Ni di panggil sebagai pre define method. Java ni bahasa yang 'straight'. Ko buleh tulis direct dalam BI dan tak banyak simbol yang digunakan. Aku tengah mendalami asas j2ee. Tak abis lagi.wa bro ko pro lah ...aku baru blajr asa in the java j2se baruu... blh tlong ajr tak Quote Share this post Link to post Share on other sites
Firestarter 0 Report post Posted December 17, 2008 Ko buat dulu. Bila ko tak paham baru kitorang kat sini tolong..Usaha tangga kejayaan Quote Share this post Link to post Share on other sites
nazinc 0 Report post Posted December 30, 2008 QUOTE(raveredhat @ Sep 3 2007, 03:15 PM) <{POST_SNAPBACK}>sape ada collection java ebook, leh passing2 tak? mahal sgt ah buku dierko klik jer kat sini http://www.javapassion.com/salah satu tutorial yang aku guna...macam2 ada pasal java Quote Share this post Link to post Share on other sites