Mercurial > hg > Members > kono > PLparser
comparison src/plparser/ArrayProperty.java @ 3:1f46c9d09c1e
Simple Example worked.
author | kono@ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 29 Aug 2010 12:47:11 +0900 |
parents | b149a5aa465a |
children | 563bcb96e4fa |
comparison
equal
deleted
inserted
replaced
2:151c7fe6c61a | 3:1f46c9d09c1e |
---|---|
6 LinkedList<Property> list; | 6 LinkedList<Property> list; |
7 | 7 |
8 public ArrayProperty(LinkedList<Property> list1) { | 8 public ArrayProperty(LinkedList<Property> list1) { |
9 list = list1; | 9 list = list1; |
10 } | 10 } |
11 | 11 |
12 public String toString() { | 12 public String toString() { |
13 return "Array ("+list+")"; | 13 String s = "Array(" ; |
14 for(Property p:list) { | |
15 s += p; | |
16 s += ","; | |
17 } | |
18 s = s.substring(0, s.length()-1); | |
19 s += ")"; | |
20 return s; | |
14 } | 21 } |
22 | |
15 } | 23 } |