import java.util.Scanner; public class Program { public static void main(String[] args) { int i,j,k; Point [] pp = new Point[20]; Point p; for(i=0,j=0;i<10;i++,j++) { pp[i]=new Point(i+1,j+1); } for(k=0,j=9;k<10;k++,j--) { pp[i++]=new Point(k+1,j+1); } p = new Point(); p.drawMatrix(pp, '*', '.'); } } public class Point { private int x; private int y; public Point(){} public Point(int x,int y){ this.x = x; this.y = y; } public int getX(){ return x; } public int getY(){ return y; } public int foundPoint(Point[] pp, int a,int b) { int i; for(i=0;i