Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.LinkedList;
- class Test{
- public static LinkedList<Integer> list = new LinkedList<Integer>();
- public static void main(String[] args){
- list.add(2);
- list.add(3);
- list.add(5);
- list.add(8);
- list.add(13);
- list.add(21);
- list.add(34);
- int lim = (new Scanner(System.in)).nextInt();
- System.out.println(list);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement