
-----------------------------------
samanthaxc
Thu Mar 07, 2013 7:45 pm

Method Help
-----------------------------------
My program is supposed to calculate the squares of the numbers from 1 to twelve, then display them in a chart for showing the number and their square. I am supposed to use two methods but i'm having trouble how. Please help and tell me what is wrong



import java.io.*;

public class findingSquares
{
public static void main (String [] args) throws IOException
{

System.out.println("Number " + "Square");

findSquare root = new findSquare();

int numSquare = root.square();

int num = 0;

while (num >= 0 && num 