Simple, you have un-reachable code. The
System.out.println("Cubed: " + newAmount); can never be reached because your method has already returned. Change your program to this:
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int entry;
Scanner keyBoard = new Scanner(System.in);
System.out.print("Enter a number which you wish to square:");
entry = keyBoard.nextInt();
System.out.println("The number chosen is " + entry);
System.out.println("Squared: " + predictSquare(entry));
}
public static int predictSquare(int entry)
{
int newAmount;
newAmount = entry * entry;
return newAmount;
}
I'm assuming you meant to say "squared" instead of "cubed"