java - There are no main classes found -
When I run it in NETBEANS IDE 8.0
it keeps saying that no main square Is I already added the main category? Do not understand the need for help PS If I remove the static in magic () then it blocks the magic () in the main ().
Package Fibios; Import java.util.Scanner; Public Category Fibellel {Public Static Ent Fibo (Intra Control, Intu CurrentValue, Intu Price) {If (Control & Lt; 2) {return current current; } Return Phibbo (Control - 1, Current Value + Previous Value, Current View); } Public static zero magic () {string cCharacter; Do {System.out.println ("input here:"); Int Some = New Scanner (System.in) .nextInt (); For (int i = 1; fibro (i, 0, 1) & lt; = some; i ++) {System.out.println (fibo (i, 0, 1)); } Tax {system.out.println ("Do you want to try again?"); CCharacter = New Scanner (System.in) .next (); } CCharacter.equals ("y") || cCharacter.equals ("Y") || cCharacter.equals ("N") || cCharacter.equals ("n"));} while (cCharacter .equals ('y')) cCharacter.equals ('Y')); } Public static int main (string algos []) {magic (); Return 0; }}
return type should be zero
Code> int :
public static zero main (string array []) {...}
JVM seems accurate signature.
Comments
Post a Comment