Problem running code with JML2 in Eclipse
Posted
by devoured elysium
on Stack Overflow
See other posts from Stack Overflow
or by devoured elysium
Published on 2010-03-18T17:19:30Z
Indexed on
2010/03/18
17:21 UTC
Read the original article
Hit count: 313
I'm having trouble running JML2 in Eclipse. I have the foolowing code:
public class MainClass {
public static void main(String[] args) {
System.out.println(-9.0);
}
//@requires x >= 7.0
public static double getSquare(double x) {
return Math.sqrt(x);
}
}
The error I'm getting is:
Is there anything wrong with the syntax I've used?
Thanks
© Stack Overflow or respective owner