fork download
  1. import java.util.LinkedList;
  2. public class LinkedList{
  3. public static void main(string arg[]){
  4. LinkedList<string> LL=new LinkedList <string> ();
  5. LL.add("A");
  6. LL.add("B");
  7. LL.addLast("C");
  8. LL.addFirst("D");
  9. LL.add("E");
  10. system.out.println(LL);
  11.  
  12.  
  13. }
  14. }
Success #stdin #stdout #stderr 0s 5300KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "import": syntax error
Error: near line 2: near "public": syntax error
Error: near line 5: near "LL": syntax error
Error: near line 6: near "LL": syntax error
Error: near line 7: near "LL": syntax error
Error: near line 8: near "LL": syntax error
Error: near line 9: near "LL": syntax error
Error: near line 10: near "system": syntax error
Error: near line 13: unrecognized token: "}"