Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package shd.epic.gamer.dab.party.main;
- import java.util.ArrayList;
- import java.util.LinkedList;
- import java.util.Queue;
- import java.util.Stack;
- public class Main {
- private static String[] array = new String[7]; // Fixed Size
- private static ArrayList<String> arrayList = new ArrayList<>(); // Non Fixed Size
- private static Stack<String> stack = new Stack<>(); //LIFO
- private static Queue<String> queue = new LinkedList<>(); //FIFO
- public static void main(String[] args) {
- // To make this more spicy I have used Arrays to Dictate a song.
- // This is about the questions that are truly un-answerable
- // And proof that there is such a thing as a bad question.
- array[0] = "Why is it dark when it’s night outside";
- array[1] = "And Why can’t I look at the sun";
- array[2] = "And how come when I look at the sun, it hurts my eyes, and makes me blind";
- array[3] = "How do you make sparkling water";
- array[4] = "and why does it always go flat";
- array[5] = "where do the bubbles go";
- array[6] = "no one will ever know";
- array[7] = "somethings are just unsolvable"; // Would throw Error as fixed size
- arrayList.add("Questions!");
- arrayList.add("That‘ll never have answers.");
- arrayList.add("Questions!");
- arrayList.add("That’ll never be solved.");
- arrayList.remove(1); // That‘ll never have answers.
- arrayList.remove(0); // Questions!
- stack.add("Which of our dads would win in a fight");
- stack.add("And where does all the time go");
- stack.add("Does the time get gifted to the dad who wins");
- stack.add("In their imaginary battle of a fatherly fists?");
- stack.pop(); // In their imaginary battle of a fatherly fists?
- queue.add("Why do we have to wash our hands");
- queue.add("And why is it gay to have sex with a man");
- queue.add("Why is it illegal to build a bomb");
- queue.add("And why can’t we just all get along");
- queue.remove(); // Why do we have to wash our hands
- // Some more arrays so i can finish the song
- String[] otherArray = new String[5];
- otherArray[0] = "Questions!";
- otherArray[1] = "That‘ll never have answers.";
- otherArray[2] = "Questions!";
- otherArray[3] = "That’ll never be solved.";
- otherArray[4] = "(Forever.)";
- // Truly, unanswerable questions. Every single one of them.
- // Rejoice. The platinum age is here.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement