1 6 package de.uka.ipd.coverage.utils; 7 8 12 public class SafeStringArray { 13 String [] content = null; 14 15 public SafeStringArray() { 16 this.content = new String [0]; 17 } 18 19 public void setStringArray(String [] array) { 20 this.content = array; 21 } 22 23 public String getString(int index) { 24 if (index >= 0 && index < content.length) { 25 return content[index]; 26 } else { 27 return ""; } 29 } 30 } 31 | Popular Tags |