I'm getting this error
Main method not found in class
Bank
, please define the main method as:public static void main(String[] args)
or a JavaFX application class must extendjavafx.application.Application
Here is my Bank
class
public class Bank { //Bank Class to calculate the value for infrastructure of each Bank
final int N = 9; // Equal to highest number in my CQU Student ID 12029103
int cost;
public int costPerBank(int numberOfComputers) {
// Calculate the total cost for numberOfComputers entered by the user
if (numberOfComputers == 0) { // When user enters '0' or negative values
cost=0;
}
if (numberOfComputers <= 2 && numberOfComputers >= 1) { // When user enters '1' or '2'
cost=1000;
}
if (numberOfComputers > 2 && numberOfComputers<=20) { // When user enters '3' to '20'
cost=1000+((numberOfComputers-2)*400);
}
if (numberOfComputers > 20 && numberOfComputers<=100) { // When user enters '21' to '100'
cost=1000+((numberOfComputers-2)*300);
}
if (numberOfComputers > 100) { // When user enters more than '100'
cost=numberOfComputers*200;
}
return cost;
}
}