code to Go.
LinkedList<LinkedList<Integer>> data = new
LinkedList<LinkedList<Integer>>();
for (LinkedList<Integer> list : data) {
for (Integer value : list) {
System.out.println(value);
}
}
On Thursday, September 26, 2013 9:02:36 PM UTC+8, Cao Nguyên wrote:
Maybe you want a struct with At(i, j int) method?
Vào 17:01:48 UTC+7 Thứ năm, ngày 26 tháng chín năm 2013, hao5ang đã viết:
--Maybe you want a struct with At(i, j int) method?
Vào 17:01:48 UTC+7 Thứ năm, ngày 26 tháng chín năm 2013, hao5ang đã viết:
I want create one two-dimension list (every element of the list is one
integer list) and traverse it. Can anyone help to write one sample?
The reason I don't use [][]int is I may add one column or remove one line.
integer list) and traverse it. Can anyone help to write one sample?
The reason I don't use [][]int is I may add one column or remove one line.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.