so if i change jumpsPossible in that line to jumpsPossible (0,s,"")
this is the error:
frog.java:18: 'void' type not allowed here
System.out.println ("Freddie can get to the top of the staircase...
Type: Posts; User: CompScienceStudent1
so if i change jumpsPossible in that line to jumpsPossible (0,s,"")
this is the error:
frog.java:18: 'void' type not allowed here
System.out.println ("Freddie can get to the top of the staircase...
but its not a variable I'm trying to call the jumpsPossible method
but i wrote that o.o so confused x.x i did call the method
The method jumpsPossible is determining the number of possible combinations and the ways in which the frog can jump, so I am trying to print the results of that method in main. . .
No that is what should be the output
when i try to compile i get an error:
kulbir-sabharwals-imac:Raina kulbirsabharwal$ javac -classpath . frog.java
frog.java:18: cannot find symbol
symbol :...
the output should show (lets say the input is 5 stairs so. . .)
Freddie the Frog will now jump 5 stairs to catch a fly!
12345
1245
1345
1235
135
145
125
2345
My computer science teacher told my class to write a code where a frog jumps a staircase to eat a fly. The frog can only jump 3 stairs at once and the frog must jump any number of stairs input. The...