replace direct access with getter/setter methods
[aco.git] / View.java
blob76d1d0475261d6592f1417341813ea04207b9c50
1 class View {
3 public void print ( int array[][] ) {
4 for (int i[] : array) {
5 for (int j : i)
6 System.out.printf("%-3d ", j);
7 //System.out.print(j + "\t");
8 System.out.println();
13 public void print ( Element elem ) {
14 System.out.print("X: " + elem.getPosX() + " Y: " + elem.getPosY() + "\t");
17 public void println ( Element elem ) {
18 System.out.println("X: " + elem.getPosX() + " Y: " + elem.getPosY());
21 public void print ( int pr ) {
22 System.out.print(pr);
25 public void print ( String[] string ) {
26 System.out.print(string);