| | |
illegal start of expression
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
[code]
java Syntax (Toggle Plain Text)
public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }
![]() |
Similar Threads
- Illegal Start of Expression (Java)
- illegal start of expression (Java)
- JAVA Illegal Start of Expression Error (Java)
- Fibonacci Recursion - Illegal Start of expression! (Java)
- illegal start of expression (Java)
- Why illegal start of expression error? (Java)
- illegal start of expression (Java)
Other Threads in the Java Forum
- Previous Thread: How to deploy servlets in a jakarta tomcat server
- Next Thread: Regrading Java Speech API
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arguments array arrays automation binary birt block bluetooth c# capture chat class classes client code color compile component count database defaultmethod design draw eclipse error event eventlistener exception expand file fractal game givemetehcodez graphics gui helpwithhomework html ide if_statement image input integer interface j2me java javaarraylist javaprojects jetbrains jmf jni jpanel jtree julia keyword linux list loop macintosh map method methods mobile multithreading netbeans newbie number object oracle os print problem program programming project read recursion replaydirector scanner screen server set size sms socket sort sql string subclass swing test textfield threads time tree windows






