class Squares { // Print all square numbers up to a fixed limit static final int LIMIT=150; public int display(int limit) { int i; for(i=1;i*i