Newsgroup: it.comp.java
Titolo: Problema di un principiante...aiuto!!!!

Ragazzi ho da poco iniziato la programmazione in java quindi scusate le mie
domande probabilmente stupide.
Ho cominciato ad utilizzare le classi collezione e mi sono trovato davanti
questo problema.Quando vado a compilare:
import java .io.*;
class prova
{
 public void main (String [] arg) throws Exception
 {
  BufferedReader a= new BufferedReader(new InputStreamReader(new
FileInputStream(new File("lu.txt"))));
  Vector vi= new Vector();
  while ( a != null)
  {
  String b= a.readLine();
  vi.addElement(b);
  a.readLine();
 }
 }
il compilatore mi riporata i seguenti errori:
--------------------------- Compiler Output ---------------------------
prova.java:7: cannot resolve symbol
symbol  : class Vector
location: class prova
  Vector vi= new Vector();
                ^
prova.java:7: cannot resolve symbol
symbol  : class Vector
location: class prova
  Vector vi= new Vector();
                               ^
2 errors
Un finito grazie a chi mi rispondesse.

 symbol  : class Vector
Vector mi pare che sia in java.util.
Aggiungi
import java.util.*;
all'inizio.
Davide

Ragazzi ho da poco iniziato la programmazione in java quindi scusate le mie domande probabilmente stupide.
Ti segnalo qualche link...
-----------------------------------------------------[ Java Links v0.9.4 ]---
 01. Java Home Page della Sun ........................... 
http://java.sun.com
 02. Java Software FAQ Index ......... 
http://java.sun.com/docs/faqindex.html
 03. Getting Started with Java Technology .. 
http://java.sun.com/starter.html
 04. FAQ di it.comp.java ... 
http://space.tin.it/computer/csadun/javafaq.html
 05. Java 2 Platform Standard Edition .............. 
http://java.sun.com/j2se
 06. Jikes at IBM ......................... 
http://oss.software.ibm.com/jikes
 07. Java 2 SDK, Documentation ............ 
http://java.sun.com/j2se/1.3/docs
 08. The Java Tutorial .............. 
http://java.sun.com/docs/books/tutorial
 09. Online Training . 
http://developer.java.sun.com/developer/onlineTraining
 10. Thinking in Java, 2nd Edition ........... 
http://www.bruceeckel.com/TIJ2
 11. Sun Java Center J2EE Patterns ..........................................
 
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
 12. The Java Language Specification ..... 
http://java.sun.com/docs/books/jls
 13. Java Code Conventions ................ 
http://java.sun.com/docs/codeconv
 14. The JVM Specification ............ 
http://java.sun.com/docs/books/vmspec
 15. Google: il miglior motore di ricerca ............. 
http://www.google.com
 16. ... 
http://directory.google.com/Top/Computers/Programming/Languages/Java
 17. Progetti OpenSource in Java ........ 
http://sourceforge.net/foundry/java
 18. Giant Java Tree ..................................... 
http://www.gjt.org
 19. Un buon Editor ............................ 
http://jedit.sourceforge.net
 20. Java Apache Mail Enterprise Server ........ 
http://java.apache.org/james
 21. Tomcat ................................ 
http://jakarta.apache.org/tomcat
 22. Borland JBuilder 4 Foundation .......... 
http://www.borland.com/jbuilder
 23. Source Code Release ................ 
http://java.sun.com/communitysource
 24. Un buon decompilatore ...................... 
http://jode.sourceforge.net
 25. Il miglior sistema di Logging .......... 
http://jakarta.apache.org/log4j
 26. jCVS A Java Based CVS Client ....................... 
http://www.jcvs.org
 27. Ozone: The Open Source Java ODBMS .................. 
http://ozone-db.org
 28. HypersonicSQL ............................. 
http://www.hypersonicsql.com
 29. WebMacro ....................................... 
http://www.webmacro.org
 30. Demo stupefacenti da Digital Nerds .............. 
http://dn.planet-d.net
 31. The Java Arcade Emulator ......... 
http://web.utanet.at/nkehrer/jae.html
 32. JIMI Software Development Kit ........ 
http://java.sun.com/products/jimi
 33. Sun Java Advanced Imaging .. 
http://java.sun.com/products/java-media/jai
 34. PtPlot from Berkeley ...... 
http://ptolemy.eecs.berkeley.edu/java/ptplot
 35. List of Java compilers and virtual machines ............................
     ....... 
http://www.geocities.com/marcoschmidt.geo/java-image-coding.html
 36. Corsi Sun Microsystems Italia .............. 
http://www.sun.it/education
 37. Corsi per principianti ......................................... working
 38. Libri che vale la pena leggere/comprare ........................ working
 39. Java in italiano ............................................... working
 40. Editor & IDE per Java ma non solo ......................................
 41. XML & Java ..................................................... working
 42. DB, DBMS & Java ................................................ working
 43. Application Server & Others .................................... working
--------------------------[ Castagna inside ;P also on news:it.comp.java ]---