Hi,
I have just started at uni doing a BSc in Applied Computing and Multimedia.
We started on programming and i have been given a task to write a simple java program :
Write a program that converts 3.5 miles into inches using the following criteria.
3.5 * 1760 = 6160 yards 6160 * 3 = 18480 feet 18480 * 12 = 221760 inches
I have started in Netbeans and have done the following the following
package distance;
/**
*
* @author s0144037
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void Main(String[] args) {
double mile = 3.5;
double yard = mile * 1760;
double feet = yard * 3;
double inches = feet * 12;
System.out.println("3.5 Miles Converted into inches" = mile * yard * feet + inches);
}
}
Now when i try and run the it i get the error "No Main Classes Found".
I am not sure where i have gone wrong or even if i am on the right track!
If anyone could help explain that would be amazing
Thanks