()
| 34 | System.out.println("Zero-argument constructor"); |
| 35 | } |
| 36 | @Override public String toString() { |
| 37 | StringBuilder result = new StringBuilder(":"); |
| 38 | result.append(c); |
| 39 | result.append("("); |
| 40 | for(Data dat : d) |
| 41 | result.append(dat); |
| 42 | result.append(")"); |
| 43 | if(next != null) |
| 44 | result.append(next); |
| 45 | return result.toString(); |
| 46 | } |
| 47 | public static void |
| 48 | main(String[] args) throws ClassNotFoundException, |
| 49 | IOException { |