From bb2efe0de5595f15def7ccd6a231ff8e12666676 Mon Sep 17 00:00:00 2001 From: Sage Burger Date: Sun, 20 Aug 2023 17:01:23 +0200 Subject: [PATCH] First draft of a gaptext (ineficant i think) --- bin/Testcode.class | Bin 2258 -> 3013 bytes src/Testcode.java | 28 ++++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/bin/Testcode.class b/bin/Testcode.class index 2236c6eefde1864957a011aa4edc3f52f10e0239..c555213e59a123ea42a67491c530c702d2094c47 100644 GIT binary patch delta 1379 zcmZuxOKcle6g@Y#Gvo2t4#Rg!Ri2=x2}zUC51*tVDQ(j>5c)}=Unnp3I3CxT3FAqO z`P39>Rdp9;(+Y_oB#IENM5`!35J*VS1xrAckYK?AiLMYUcEBB{4J6q1efQjZ&b!ZV z?tAmyE#KU!ef!tKmjL>3>azB0Q%%Jd!tHxYmMmMsa(v4ZQe@qd>-DI3jF4GQIl>() zT3KJ%j_?c8Uy=?G)-0EboSn~mTyjbCIAPUtjk8n8Tv*SZws^hmggaIUZmg$a5W5uY zB(xOewCpNLXS{2~_iSfe$8HP->4?}qh$nRn<0*n-mv>A|`c*=twe7Hqy@b`ncDc-Q zQE|OoYq?Fhp2$ikYn7~Arvbu#9qTa?d>`pe8fe1PVfYN;XmBl(39d&BwoJ@G1p9+j z^mH3#36x{A*z#=SYz0Dc#FyFQ!*X&|j+HD0hl2N`8=5`%3d+IH(RP{&;<0z4FQ|Ai z_$YQy?Il9{Xu+zAO2P6hLHt-fx57=JP7&tUanh<< zrA_rJQl>hO9rJkNJl2@;Fpl4hQ&-Sp?3u@1ACSI6`Y(k)R?MpXhr4EKVMXo#74f;5 z2&qH^>RnS0DZK%8%1nk-vH?{zQz4a_Xu$0;(;=5`KyBhpnyMLJz&?QY8itygFm*Gz zfYGHCPhP-*dUzS&GpF%*1s%c1N`LJ>%wR3fA%j`mj|*6bOK8O$9>5Q1$4}_M?|gLs zL?>zJA_Lu&!Gp9O8)yI+UYg?jY^ASo7)SWtbkG+#if8%Cbkk>ej!}fCU&Jv+Q4G;6o@W%p z0eTCPQ8Of+!5AYxQItm(IjA^G$6zsvV}=eQ&q%{L+J|vQ3Cz+E3XF7IpxQRr43oG- zTTo<_!W?bJaYkvB_^%D%w!iT;S`7~^?<-}!&%{2w_x`(HO2&wp%f0|P9r z8y^E*2K}7S7!Wkf$z|DFlyQ6@*;*3Bml!g}; zy%j+)*)gqiR?s%#m}SS!mQ2g`EZ54Kj%%hJFK=d~ow15mwnt|~keJF_=Cb9c&9W?+ zw&U&A?~;xQI;zs5laXG*u{-~(Z$fY(N;l(zW4;U}{IyVXy-Gp4xssrH#_tQa_#Z;K z#yu%dX6DD`;*?AmEsaTkDSWgpO;#i0KMi*Y%YPew6p}i5zg%~)XHKwB#j#?RRZ^xf zy}av`O=${2bkw#jcc>^!C99;NN|o^6g%d#y$9J@f5eTATsFHv8ziO+Mxc-b-T;JsQ zCW8++5RX)O%r&^Pi>_ z{4bG#N;_*L*x(R59OflS-qXP+I{8c&-&6tX)vejzQ8U4$VoBa`kxQz=M|j0$QUvJZ z1yc$I)py$Fib5gASm&xjVXpC5%@lP=9&%kFjr-i=MwV%GR#{?3p$IqC^KIxqmCDe# srO_^GO`~58*lSdKOu4zOlmYH=SM4!{W>q-3+FD>n+a diff --git a/src/Testcode.java b/src/Testcode.java index f76ca5e..1029ed1 100644 --- a/src/Testcode.java +++ b/src/Testcode.java @@ -32,15 +32,35 @@ public class Testcode { // Display a popup dialog and get user input String a = JOptionPane.showInputDialog("Please enter a verb (-ing):"); String b = JOptionPane.showInputDialog("Please enter a location:"); + String c = JOptionPane.showInputDialog("Please enter a color:"); + String d = JOptionPane.showInputDialog("Please enter an object in that color:"); + String e = JOptionPane.showInputDialog("Please enter a diffrent color:"); + String f = JOptionPane.showInputDialog("Please enter an object in that color:"); + String g = JOptionPane.showInputDialog("Please enter an adjective:"); + String h = JOptionPane.showInputDialog("Please enter an object"); if ((a == null || a.trim().isEmpty()) && (b == null || b.trim().isEmpty())) { - System.out.println("No words entered or both canceled."); + System.out.println("Missing word(s) or canceled."); } else if (a == null || a.trim().isEmpty()) { - System.out.println("The verb was not entered or canceled."); + System.out.println("Missing word(s) or canceled."); } else if (b == null || b.trim().isEmpty()) { - System.out.println("The location was not entered or canceled."); + System.out.println("Missing word(s) or canceled."); + } else if (c == null || c.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); + } else if (d == null || d.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); + } else if (e == null || e.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); + } else if (f == null || f.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); + } else if (g == null || g.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); + } else if (h == null || h.trim().isEmpty()) { + System.out.println("Missing word(s) or canceled."); } else { - System.out.println("They were " + a + " throw a " + b ); + System.out.println("They where " + a + " throw a " + b + ". They're eyes where "); + System.out.println(c + " as the " + d + " They're hair as " + e + " as " + f + "."); + System.out.println("It was a " + g + " day, after a long journey they finally found their " + h); } } }