import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    
    public static void main(String[] args) {
        // ArrayList<Float> random = new ArrayList<Float>();
        LinkedList<Float> random = new LinkedList<Float>();

        random.add(2f);
        random.add(4f);
        random.add(5f);
        random.add(10f);
        random.add(99f);
        // printRandom(random);
        System.out.println(random.get(2));
    }
    
    // public static void printRandom(LinkedList<Float> list) {
    //     // for (Float s : list) {
    //     // }
    // }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: