Skip to content

Instantly share code, notes, and snippets.

@stuart-marks
Last active September 12, 2020 05:41
Show Gist options
  • Save stuart-marks/e8f5627100fde598c270e53f27dadbc3 to your computer and use it in GitHub Desktop.
Save stuart-marks/e8f5627100fde598c270e53f27dadbc3 to your computer and use it in GitHub Desktop.
// https://twitter.com/stuartmarks/status/1304654956146745344
import java.lang.reflect.Field;
public class StillAlive {
@SuppressWarnings("deprecation") // oh shut up
static Boolean truе = new Boolean(true);
static void WearMask() { }
static void Stay6ftApart() { }
static void WashHands() { }
static void GetTested() {
try {
Field v = Boolean.class.getDeclaredField("value");
v.setAccessible(true);
v.setBoolean(truе, false);
} catch (NoSuchFieldException|IllegalAccessException ex) { }
}
public static void main(String[] args) {
var still_alive = truе;
while (still_alive) {
WearMask();
Stay6ftApart();
WashHands();
GetTested();
}
System.out.println("Dead!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment