@erikFWIW, I agree that your proposed sentence is more correct, taking both
the English and Java languages into consideration. The class has a variable
whose type is a particular class. It is a semantic point, but one that is -
obviously - confusing to a beginner.
>but classes are not variables (String != str)
>and variables are not classes,
no, but they are instances of a class*: str is a String.
*except for primitives
@miga
>> But classes are not variables (String != str)
>Sorry, but str does not exists in Java language, String is a class,
>you may construct an object of this class via:
>String foo = new String("whatever);
>or as a convenience method only for String:
>String foo = "whatever";
OP's point was that the String named: str (which is a variable) is not equal
to the String class, or in your example:
String != foo
erik, give it another shot. it looks to me like you're on the right track,
just worry less about the obstacles.
PS: sorry for coming into the conversation late. I've only just got some
free cycles :-)
2008/8/28 erik <[EMAIL PROTECTED]>
> I give up.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---