ChroNoZz
01-17-03, 14:10
| Well im new at this. Never programmed in Java before, so i dont know much. For school I had to make a easy program, but its not easy if they dont tell you how to program and instead keep blabbering about ints and doubles. So this is my first program: public class Opgave1 { public static void main(String[] args) { double Fahrenheit = Double.parseDouble(args[0]); double Celsius = 5.0 / 9.0 * ( Fahrenheit - 32 ); System.out.println("Het aantal" + Celsius); } } I was supposed to make a Fahrenheit to Celcius converter. So this is what ive made so far. The compiler says its good, but when i execute it it says : Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at Opgave1.main(Opgave1.java:4) Because i'm new I dont know what it means, can somebody help me out here? I dont expect you to make the assignment for me or something, I just need some enlightment. Can please say whats wrong with this? Please dont say anything complicated, because im supposed to make this program out of basic java commands. Thx in advance! Greetingz ChroNoZz |