newbie with object problems



Hello,

Here are my error messages from javac -

C:\j2sdk1.4.2_02\bin>javac xx.java
xx.java:125: <identifier> expected
Vector<Object> king =new Vector<Object>();
^
xx.java:225: '(' or '[' expected
ArrayList<Object> queen = new ArrayList<Object>();
^
2 errors

Without the <Object> it compiles fine - I am on dialup so do I really
have to get 142-08?

Thanks,

LM

.



Relevant Pages

  • Re: Compilation error without stating any reason
    ... error there are several warnings but no error messages. ... Note the 'but no error messages', ... but only after the code compiles at all. ... That's why I cancelled my posting as soon as I realized *my* ...
    (comp.unix.programmer)
  • Re: Compilation error without stating any reason
    ... error there are several warnings but no error messages. ... Note the 'but no error messages', ... but only after the code compiles at all. ... might report an error without explicitly using the 'error' keyword. ...
    (comp.unix.programmer)
  • Re: ostream_iterator from fstream
    ... Would have helped to include that code that gives those error messages. ... The following compiles for me even on the ancient VC++ 6, ... As I said this should work, so either you have a duff compiler, a duff STL ...
    (comp.lang.cpp)
  • Re: CBitmapButton
    ... So, from the error messages but no code, we're supposed to know what's wrong ... Paul T. ... I have a problem when compiles on VisualStudio 2005 using CBitmapButton... ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: MEX error message
    ... time and can no longer remember what sort of configuration steps I ... I compiled fine, no error messages. ... compiles the stuff with 3.4 which causes some incompatibilities. ...
    (comp.soft-sys.matlab)