nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nitiwiki: extends the example with an external highlighter
[nit.git]
/
tests
/
test_jvm
/
TestJvm.java
1
package
test_jvm
;
2
3
public class
TestJvm
4
{
5
6
private
Test2 test
;
7
private
boolean
bool
;
8
private
char
c
;
9
private
int
i
;
10
private
float
f
;
11
12
13
public
TestJvm
(){
14
this
.
bool
=
false
;
15
this
.
c
=
'C'
;
16
this
.
i
=
0
;
17
this
.
f
=
0
;
18
this
.
test
=
null
;
19
this
.
test
=
new
Test2
();
20
}
21
22
23
public
Test2
getTest
(){
return this
.
test
;}
24
public
boolean
isBool
(){
return this
.
bool
;}
25
public
char
getC
(){
return this
.
c
;}
26
public
int
getI
(){
return this
.
i
;}
27
public
float
getF
(){
return this
.
f
;}
28
}
29