annotate src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/list/replaceTest.cs @ 12:b71d9ea6bd8e

Add Network Operation Class. this codes can not test yet.
author Kazuma
date Sun, 23 Oct 2016 12:25:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
1 using UnityEngine;
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
2
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
3 public class replaceTest : MonoBehaviour {
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
4
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
5 // Use this for initialization
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
6 void Start () {
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
7 List<int> list = new List<int> ();
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
8 for (int count = 0; count < 10; count++) {
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
9 list = list.addLast (count);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
10 Debug.Log("list" + list.tail());
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
11 }
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
12 List<int> newList = list.replace (5, 15);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
13 int attribute = list.index (5);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
14 Debug.Log (attribute);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
15 attribute = newList.index (5);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
16 Debug.Log (attribute);
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
17 }
b71d9ea6bd8e Add Network Operation Class. this codes can not test yet.
Kazuma
parents:
diff changeset
18 }