Java Compiler : Java Syntax
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
LinkedList nfl_Teams=new LinkedList();
nfl_Teams.add("Arizona Cardinals");
nfl_Teams.add("Atlanta Falcons");
nfl_Teams.add("Baltimore Ravens");
nfl_Teams.add("Buffalo Bills");
nfl_Teams.addFirst("Carolina Panthers");
System.out.println("\nTeams of NFL are: "+nfl_Teams);
}
}