If I am using the drawString(String, Int, Int) command in java. How can I store / call different graphics that have been stored in an ArrayList?
So, for example,
ArrayList<what type will this be???> list = new ArrayList;
int pos = 0;
for (int i = 0; i < list.size(); i++) {
g.get(i).drawString("hello", 50, 50 + pos);
pos += 20;
}