Archive for July 25, 2009

inheritance on scala

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);
}
[...]

Bookmarks:
  • Facebook
  • Google Bookmarks
  • Digg
  • LinkedIn
  • Twitter
Read the rest of this entry »

constructor on scala

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);
}
/* [...]

Bookmarks:
  • Facebook
  • Google Bookmarks
  • Digg
  • LinkedIn
  • Twitter
Read the rest of this entry »

how to install netbeans 6.7 and scala plugin

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 [...]

Bookmarks:
  • Facebook
  • Google Bookmarks
  • Digg
  • LinkedIn
  • Twitter
Read the rest of this entry »