Foros del Web » Programación para mayores de 30 ;) » Java »

ayuda con import

Estas en el tema de ayuda con import en el foro de Java en Foros del Web. hola bueno me gustaria que me ayudasen un poco soy algo nuevo en programacion y estoy aprendiendo algo de java . en el libro piensa ...
  #1 (permalink)  
Antiguo 28/01/2011, 05:39
 
Fecha de Ingreso: abril-2010
Mensajes: 30
Antigüedad: 14 años
Puntos: 0
ayuda con import

hola bueno me gustaria que me ayudasen un poco soy algo nuevo en programacion y estoy aprendiendo algo de java .

en el libro piensa en java siempre que hay q mostrar algo hace el siguiente import

import static net.mindview.util.Print.*;

pero el error que tengo es que me dice que ese paquete no existe alguien mo podria ayudar porfavor, gracias
  #2 (permalink)  
Antiguo 28/01/2011, 06:51
Avatar de chuidiang
Colaborador
 
Fecha de Ingreso: octubre-2004
Mensajes: 3.774
Antigüedad: 19 años, 6 meses
Puntos: 454
Respuesta: ayuda con import

No es estandar de java, es unas clasecillas que se hizo el autor del libro para sus ejemplos. Supongo que en el libro o en la página web del autor te dirán donde puedes descargarlas.

Esto creo que es del libro y hace referencia a eso

Cita:
In order to use this library, you must download this book’s code package from www.MindView.net or one of its mirrors. Unzip the code tree and add the root directory of that code tree to your computer’s CLASSPATH environment variable. (You’ll eventually get a full introduction to the classpath, but you might as well get used to struggling with it early. Alas, it is one of the more common battles you will have with Java.)

Although the use of net.mindview.util.Print nicely simplifies most code, it is not justifiable everywhere. If there are only a small number of print statements in a program, I forego the import and write out the full System.out.println( ).
Se bueno.
__________________
Apuntes Java
Wiki de Programación

Etiquetas: import
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:50.