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