public class TestCell {
    public static void main(String[] args) {
        Cell c1 = new Cell("the", null);
        Cell c2 = new Cell("world", new Cell("is", new Cell("square", null)));
        c1.setNextCell(c2);
        for (Cell c = c1; c != null; c = c.getNextCell()) {
            System.out.println(c.getElt());
        }
    }
}
