[4284] in java-interest
Re: My oh my not again
daemon@ATHENA.MIT.EDU (Patrick Taylor)
Fri Dec 15 13:40:03 1995
Date: Fri, 15 Dec 1995 12:01:17 -0500
From: Patrick Taylor <patrick.taylor@template.com>
To: java-interest@java.sun.com
In-Reply-To: <199512151027.CAA16913@java.sun.com>
> From: Gary Alness <misman@hooked.net>
> Date: Thu, 14 Dec 1995 18:24:51 -0800
> Subject: My oh my not again
>
> what is wrong with this code???
First of all, you need to include the code, not just the errors.
I'm assuming that args is a String[].
> myrect.java:43: Incompatible type for if. Can't convert int to boolean.
> if(args.length = 2) {
> ^
> myrect.java:43: Invalid left hand side of assignment.
> if(args.length = 2) {
> ^
= is used for assignment. Try ==.
> myrect.java:44: Class Interger not found in void main(java.lang.String[]).
> int w = Interger.valueOf(args[0]).intValue();
> ^
> myrect.java:45: Class Interger not found in void main(java.lang.String[]).
> int h = Interger.valueOf(args[1]).intValue();
It's Integer, not Interger.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com