Using the integer provided as input, the program should generate a list of numbers representing the Fibonacci sequence containing that many entries.
Before printing the list, the program should perform two additional operations on the list. First, if the integer provided as input is contained in the list, it should be removed. Secondly, the list should be presented in descending order, with the largest value first.
public static List<Integer> makeList(int x){
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
}
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
}
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove(x);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove(x);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove(x);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove((Integer)x);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove((Integer)x);
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove((Integer)x);
Collections.sort(list, Collections.reverseOrder());
}
public static List<Integer> makeList(int x){
List<Integer> list = new ArrayList<Integer>();
list.add(0);
list.add(1);
for(int i = 2; i < x; i++){
int newNumber = list.get(i-1) + list.get(i-2);
list.add(newNumber);
}
list.remove((Integer)x);
Collections.sort(list, Collections.reverseOrder());
return list;
}