Advertisement
SamHDev

Proof that there is such a thing as a bad question.

Jun 4th, 2020
1,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.57 KB | None | 0 0
  1. package shd.epic.gamer.dab.party.main;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.LinkedList;
  5. import java.util.Queue;
  6. import java.util.Stack;
  7.  
  8. public class Main {
  9.  
  10.     private static String[] array = new String[7]; // Fixed Size
  11.     private static ArrayList<String> arrayList = new ArrayList<>(); // Non Fixed Size
  12.     private static Stack<String> stack = new Stack<>();  //LIFO
  13.     private static Queue<String> queue = new LinkedList<>();  //FIFO
  14.  
  15.     public static void main(String[] args) {
  16.        
  17.         // To make this more spicy I have used Arrays to Dictate a song.
  18.         // This is about the questions that are truly un-answerable
  19.         // And proof that there is such a thing as a bad question.
  20.        
  21.         array[0] = "Why is it dark when it’s night outside";
  22.         array[1] = "And Why can’t I look at the sun";
  23.         array[2] = "And how come when I look at the sun, it hurts my eyes, and makes me blind";
  24.         array[3] = "How do you make sparkling water";
  25.         array[4] = "and why does it always go flat";
  26.         array[5] = "where do the bubbles go";
  27.         array[6] = "no one will ever know";
  28.         array[7] = "somethings are just unsolvable"; // Would throw Error as fixed size
  29.  
  30.         arrayList.add("Questions!");
  31.         arrayList.add("That‘ll never have answers.");
  32.         arrayList.add("Questions!");
  33.         arrayList.add("That’ll never be solved.");
  34.         arrayList.remove(1); // That‘ll never have answers.
  35.         arrayList.remove(0); // Questions!
  36.  
  37.         stack.add("Which of our dads would win in a fight");
  38.         stack.add("And where does all the time go");
  39.         stack.add("Does the time get gifted to the dad who wins");
  40.         stack.add("In their imaginary battle of a fatherly fists?");
  41.         stack.pop(); // In their imaginary battle of a fatherly fists?
  42.  
  43.         queue.add("Why do we have to wash our hands");
  44.         queue.add("And why is it gay to have sex with a man");
  45.         queue.add("Why is it illegal to build a bomb");
  46.         queue.add("And why can’t we just all get along");
  47.         queue.remove(); // Why do we have to wash our hands
  48.  
  49.         // Some more arrays so i can finish the song
  50.         String[] otherArray = new String[5];
  51.         otherArray[0] = "Questions!";
  52.         otherArray[1] = "That‘ll never have answers.";
  53.         otherArray[2] = "Questions!";
  54.         otherArray[3] = "That’ll never be solved.";
  55.         otherArray[4] = "(Forever.)";
  56.  
  57.         // Truly, unanswerable questions. Every single one of them.
  58.         // Rejoice. The platinum age is here.
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement