22.08.2023 Views

Fall 2021 Inklings

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

(end)

-------------------------------------------------------------------------------------------

Time passing

Dust gathers on the windowsill

Emptiness consumes my lifestyle

Need a way out.

-------------------------------------------------------------------------------------------

CypherEmoteVoid.exe

9 import java.util.Scanner; // Import scanner and mismatch exception

10 import java.util.InputMismatchException;

11

12 public class HeadSpace {

13

14 public static void in my heart(Strings[] args) {

15

16 // import emotion to read user input

17 Scanner keyboardReader = new Scanner(System.in);

18 String repeat = "overthink";

19 int row = 0;

20 do {

21 do {

22 try {

23 // checks to make sure that input is a valid excuse

24 System.out.printf("Why am I like this");

25 row = keyboardReader.nextInt();

26 if (row < 1) {

27 throw new IllegalArgumentException();

28 }

29 } catch (InputMismatchException e) {

30 System.out.println("Invalid emotion");

31 row = -15;

32 keyboardReader.next();

33 } catch (IllegalArgumentException e) {

34 System.out.printf(

35 "No result with an input less "

36 + "than or equal to happy");

37 }

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!