Advertisement
ntrrgc

linked list... con รญndices!

Jan 31st, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.69 KB | None | 0 0
  1. package Prueba;                                                                                                                                                          
  2.                                                                                                                                                                          
  3. import java.util.LinkedList;                                                                                                                                              
  4.                                                                                                                                                                          
  5. public class prueba                                                                                                                                                      
  6. {                                                                                                                                                                        
  7.                                                                                                                                                                          
  8.     public static void main(String[] args)                                                                                                                                
  9.     {                                                                                                                                                                    
  10.         LinkedList<String> lista = new LinkedList<String>();                                                                                                              
  11.         lista.add("nawrulez");                                                                                                                                            
  12.         lista.add("hawk31 es un paharraco despreciable");                                                                                                                
  13.                                                                                                                                                                          
  14.         System.out.println(lista.get(1));                                                                                                                                
  15.     }                                                                                                                                                                    
  16.                                                                                                                                                                          
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement