18 lines
381 B
Vala
18 lines
381 B
Vala
|
|
|
|
|
|
public class ListApp {
|
|
public static int main () {
|
|
|
|
int[] a = new int[10];
|
|
|
|
// var p = new Person(); // same as: Person p = new Person();
|
|
var s = "hello"; // same as: string s = "hello";
|
|
var l = new List<int>(); // same as: List<int> l = new List<int>();
|
|
l.append(3);
|
|
var i = 10; // same as: int i = 10;
|
|
|
|
return 0;
|
|
}
|
|
}
|