<jupyter_start><jupyter_text>Lab Five---For this lab we're going to be messing around with our Linear Data Types!Our Goals are:- Creating an Array- Creating an ArrayList- Creating an LinkedList- Creating an Queue- Creating an Stack Please show the ability to:- Create these data types- Populate the data types- Print out the Linear Data Types<jupyter_code>// Create an Array, Populate it, and Print it out
int[] arrayLab = {4, 5, 7, 23, 50, 343};
for (int i = 0; i < arrayLab.length; i++){
    System.out.println(arrayLab[i]);
}
// Create an ArrayList, Populate it, and Print it out
ArrayList<Double> arrayListLab = new ArrayList(Arrays.asList(3,54,245,565,4325,324554));
for (int i = 0; i < arrayListLab.size(); i++){
    System.out.println(arrayListLab.get(i));}
// Create an LinkedList, Populate it, and Print it out
LinkedList<String> shoppingCart  = new LinkedList<String>();
shoppingCart.add("Cold Cuts");
shoppingCart.add("Paper Towels");
shoppingCart.add("Popcorn");
shoppingCart.add("Potato Chips"); 
shoppingCart.add("Vegetables");
shoppingCart.add("Fruits");
shoppingCart.add("Yogurt");

System.out.println(shoppingCart);



// Create an Queue, Populate it, and Print it out
Queue<String> premTable = new LinkedList<String>();
premTable.add("Man City");
premTable.add("Man United");
premTable.add("Leicester");
premTable.add("West Ham");

System.out.println(premTable );
// Create an Stack, Populate it, and Print it out

Stack<String> LaLigastack = new Stack<String>();

LaLigastack.push("Atletico Madrid");
LaLigastack.push("Real Madrid");
LaLigastack.push("Barca");
LaLigastack.push("Sevilla");

System.out.println(LaLigastack);<jupyter_output>[Atletico Madrid, Real Madrid, Barca, Sevilla]
{'fraction_non_alphanumeric': 0.1414319248826291, 'fraction_numerical': 0.018192488262910797, 'mean_word_length': 5.82, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '489777', 'license': 'MIT', 'n_tokens_mistral': 605, 'n_tokens_neox': 566, 'n_words': 167, 'path': 'JupyterNotebooks/Labs/Lab 5.ipynb', 'repo_name': 'emilekhoury/CMPT-220L-903-21S', 'size': '1704'}