hey guys i was wondering if you could help me basically at the minute am working on an excercise with java programming for my Foundation Degree Course in computing. i've been working with the basics of java ie defining variables and setting up the jdk kit i've got a list of excercises which i have been asked to complete. the excercises are based on converting values ie miles yards and so on (college computers suck the jdk kit isn't even installed propperly on them) but what i've created so far is the Main.java file and the actual file itself which is named variable i would just like a bit of info on how to define this in a java based program note i am using edit plus when created java applications because at the minute i am only working with the command prompt at this stage the code i have got is as follows
class Main
{
public static void Main(String[] args)
{
Scale scale =new Scale();
}
}
class Scale
{
public Scale();
{
double mile=3.5
int yards=6160
int feet=18480
int inches 221760
System.out.println(miles * yards * feet * inches);
}
}
the second section of code indicates the variables which i have setup what i have been asked is to convert from inches to feet and yards and miles. am not expecting anyone to do my work for me i just feel i need to grasp a better understanding of how the code works and what sort of code is used to carry out the calculation :( please help anyone i beg of you am dieing here:(
by the way sorry about the bad spelling afterall i am student lol
in opposite world i love programming