[4312] in java-interest
My oh my not again
daemon@ATHENA.MIT.EDU (Gary Alness)
Fri Dec 15 21:34:28 1995
From: Gary Alness <misman@hooked.net>
To: "'java-interest-digest@java.sun.com'"
<java-interest-digest@java.sun.com>
Date: Thu, 14 Dec 1995 18:24:51 -0800
what is wrong with this code???
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) {
^
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();
^
4 errors
I have tried the following in line 43
if(args.length = 2) {
if(args(length = 2)) {
if(args("length = 2")) {
I know if I clear up line 43 then errors on 44 and 45 will go away
Thanks once again everyone....
---------------------------------------------------------->
Gary Alness (misman@hooked.net) --------------------->
Out here in San Jose CA --------------------->
---------------------------------------------------------->
www.hooked.net/users/misman
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com