Posted in July 26, 2009 ¬ 8:42 pmh.cuplis
source code “binatang dan propertinya” :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class binatang {
def cetakSuara(){
}
def cetakJumlahKaki(){
}
}
class kambing extends binatang {
override def cetakSuara(){
println("Suara kambing : Mbeeeekkk!!!");
}
override [...]
Read the rest of this entry »
Posted in July 25, 2009 ¬ 7:59 pmh.cuplis
source code “cetak luas dan isi persegi panjang” :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class bangun(var panjang:Int, var lebar:Int){
/* constructor start */
def this(){
this(3,4);
}
def this(x:Int){
this(x,4);
}
[...]
Read the rest of this entry »
Posted in July 25, 2009 ¬ 7:00 pmh.cuplis
source code “cetak luas segitiga” :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class segitiga(var alas:Int, var tinggi:Int){
/* constructor start */
def this(){
this(3,4);
}
def this(x:Int){
this(x,4);
}
/* [...]
Read the rest of this entry »
Posted in July 25, 2009 ¬ 3:01 pmh.cuplis
install netbeans 6.7 :
download netbeans 6.7 di http://download.netbeans.org/netbeans/6.7/rc2
tambah permission untuk eksekusi file sh hasil download tadi
user@computer:$ chmod +x $PATH_TO_DOWNLOAD/netbeans-6.7rc2-ml-linux.sh
kemudian jalankan file tersebut
user@computer:$ sh $PATH_TO_DOWNLOAD/netbeans-6.7rc2-ml-linux.sh
ikuti petunjuk instalasi netbeans 6.7
jika instalasi sukses akan tampil icon netbeans di desktop
install scala plugin di netbeans 6.7 :
download pluginnya di http://biznetnetworks.dl.sourceforge.net/project/erlybird/nb-scala/nb-scala%206.7v1/nb-scala-6.7v1.zip
kemudian extrak file nb-scala-6.7v1.zip
jalankan aplikasi netbeans 6.7 dengan double click icon [...]
Read the rest of this entry »
Posted in July 15, 2009 ¬ 6:19 pmh.faizul
Sebagaimana bahasa pemrograman lain, untuk pertama kali kita belajar membuat program “Hello World!” dengan Scala base on Windows.
Tidak jauh berbeda dengan posting sebelumnya pada linux, hanya saja pada windows tidak perlu install.
Scala pada Windows bisa di-download disini. Setelah selesai proses download nya, extract file tersebut. Selanjutnya kita mulai membuat programnya.
Untuk pertama kali kita belajar under Command [...]
Read the rest of this entry »
Posted in July 14, 2009 ¬ 1:46 pmh.cuplis
Install Eclipse
download dari: http://anak.kambing.vlsm.org/eclipse/technology/epp/downloads/release/ganymede/SR2/eclipse-jee-ganymede-SR2-linux-gtk.tar.gz
Unzip filenya.
Start eclipse (file eclipse langsung dibawah direktori eclipse).
Install plugin untuk scala (saat eclipse sudah berhasil dijalankan):
Masuk ke menu Help
Klik menu Software Update
Pilih tab Available Software
Klik Button Add Site
Masukkan http://www.scala-lang.org/scala-eclipse-plugin di textfield Location, kemudian klik OK.
Untuk Mengetes instalasi ikuti: http://www.scala-lang.org/node/94
Source : Pak Jony Sugianto
Bookmarks:
Read the rest of this entry »