Why is the java class not compiling?
829346
Whenever you want to use the pi value simply write Math.PI:\n\nclass MathFun\n{\n  private double far = ((double)5/9); // (5/9)\n  private double cel = ((double)9/5); // (9/5)\n  private double vol = ((double)4/3); // (4/3)\n    \n  public MathFun ( ) { }\n    \n  double fToC (double F)\n  {\n    double celsius = 5 * (F - 32) / 9;\n    return celsius;\n  }\n    \n  double cToF (double C)\n  {\n    double fahrenheit = 9 * (C + 32) / 5;\n    return fahrenheit;\n  }\n    \n  double calcSphere (double r)\n  {\n    double vol = 4/3;\n    double sqr = Math.pow(r,3);\n    double volume = vol * Math.PI * sqr;\n    return volume;    \n  }\n}\n\nRegards
288635
Um...I think an Update of JAVA is needed. Dont you?\n\nwww.java.com
259787
Do you have Java installed?
636955
import java.util.*;\n\npublic class Test1 {\n\n/**\n * @param args\n */\npublic static void main(String[] args) {\nArrayList al = new ArrayList();\nal.add("All");\nal.add("Go");\nal.add("for");\nal.add("a");\nal.add("cup");\nal.add("of");\nal.add("Coffee");\nString str = "go"; // To be checked\nfor(int i=0;i<al.size();i++) {\nint test = str.compareToIgnoreCase( (String) al.get(i));\nif (test == 0)\n  System.out.println("&#92;""+str+"&#92;" is there in the arraylist at position "+i);\n}\n}\n\n}
585443
You need to enable it first.\nThen you have to restatrt your computer.\nI assume you already downloaded it?\n\nGo to your "tools" menu, then to the "advanced" tab, now scroll down till you see "Java". check the box to enable it.\nNow restart....PRESTO!
587233
More details pls.\nGo to the source:\nhttp://www.java.com/en
136156
it may be the problem ur account.Set ur user account as administrator and try. If u again found problem install java.
124327
You should try downloading Java...
143195
You may not have JAVA installed.
58190
There is a logical way to go about debugging a program.  See the link.\n\nSince I don't know Java, this is the best I can do.
760469
The most likely problem is that the applet was written using an API with methods that don't exist in the JVM class API being used by IE.  Update your browser Java Plugin to the latest and then try.
277785
You first need to import the class (or classes) and then you will be able to use their methods or  create objects with those classes.\n\nexample: import java.util.*
1146080
Java 1.5 works on windows 98. Probably the package you received was incomplete or broken.
64616
If your a biginar , dont confuse with these big answers, set the environment variable path to //jdk../bin  ,its not having its own id, u just type your program in an editor, and go to dos prompt, then compile and execute your java
43315
My 8 year old somehow downloaded this to our computer and we have had no problems with java ever since.  Maybe it will work for you too.  \n\nhttp://java.com/java/download/index.jsp
320515
i a surprised you had trouble. i have over installed java and many programs without a problem. have you tried going to http://java.com/en/download/help/
366056
Download the plugin from http://www.java.sun.com\n\nDownload the latest version (1.5.0_06). 1.4.2_03 is very old.