0
This java code is not running for some reason.
/* Online Java - IDE, Code Editor, Compiler Online Java is a quick and easy tool that helps you to build, compile, test your programs online. */ import java.util.*; public class Main { int SAdmn; String SName; float Monthly_fee; float annual_fee; public void GetData(String[] args) { Scanner input= new Scanner(System.in); System.out.println("enter admission no"); SAdmn = input.nextInt(); SName= input.next(); Monthly_fee= input.nextFloat(); annual_fee = input.nextFloat(); } }
1 Answer
+ 3
Program execution or running starts from main method. Where is your main method?