-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinklist.java
More file actions
35 lines (26 loc) · 794 Bytes
/
Copy pathLinklist.java
File metadata and controls
35 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package Algorithms;
import java.util.LinkedList;
import java.util.List;
import java.util.*;
import java.util.Scanner;
public class Linklist {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
/*
Collection Framework Linkedlist
List<Integer> val=new LinkedList<>();
int n=input.nextInt();
for (int i = 0; i < n; i++) {
int x=input.nextInt();
val.add(x);
}
System.out.print("Position");
int position=input.nextInt();
val.remove(position);
System.out.print(val+"");/*
*/
for (int i =8; i < 69; i++) {
System.out.println(i+"");
}
}
}