package com.codegym.task.task08.task0811;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/*
Quartet of "Methods"
*/
public class Solution {
public static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static List getListForGet() {
ArrayList<Object> arrayList = new ArrayList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.get(i);
}
return arrayList;
}
public static List getListForSet() throws IOException{
ArrayList<Object> arrayList = new ArrayList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.set(i,reader.readLine());
}
return arrayList;
}
public static List getListForAddOrInsert() throws IOException {
LinkedList<Object> arrayList = new LinkedList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.add(reader.readLine());
}
return arrayList;
}
public static List getListForRemove(List list) {
ArrayList<Object> ll = new ArrayList<>();
for(int i = 0; i < ll.size(); i++)
{
list.remove(i);
}
return ll;
}
public static void main(String[] args) {
}
}
package com.codegym.task.task08.task0811;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/*
Quartet of "Methods"
*/
public class Solution {
public static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static List getListForGet() {
ArrayList<Object> arrayList = new ArrayList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.get(i);
}
return arrayList;
}
public static List getListForSet() throws IOException{
ArrayList<Object> arrayList = new ArrayList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.set(i,reader.readLine());
}
return arrayList;
}
public static List getListForAddOrInsert() throws IOException {
LinkedList<Object> arrayList = new LinkedList<>();
for(int i = 0; i < arrayList.size(); i++)
{
arrayList.add(reader.readLine());
}
return arrayList;
}
public static List getListForRemove(List list) {
ArrayList<Object> ll = new ArrayList<>();
for(int i = 0; i < ll.size(); i++)
{
list.remove(i);
}
return ll;
}
public static void main(String[] args) {
}
}