Ok your assumption was correct I want to do it in the method itself and what would be my return if it wasn't a formatted string that was my initial problem I didn't know exactly what to return in...
Type: Posts; User: frodooftheshire
Ok your assumption was correct I want to do it in the method itself and what would be my return if it wasn't a formatted string that was my initial problem I didn't know exactly what to return in...
Should it not print out all the lines when I call the simulateFlight method? Why does it require to be done over and over that's my problem.
public class cannon
{
public static void main(String[]args)
{
cannonball one = new cannonball(100);
System.out.println(one);
one.simulateFlight();
...
Hey everyone so I am having the damndest time trying to find out why when I print out the string from the simulate flight method that it only prints out one line and doesn't go until height reaches...