I'm trying to make a boolean that is true if it's on one particular USB drive, and false if it is on any other drive, removable or otherwise.
public class USBChecker {
private final boolean isMyUSBDrive = somecondition;
public static void check(String[] args) {
if (isMyUSBDrive) {
System.out.println("Yay! I like you.");
} else {
System.err.println("Return me to my owner, or I'll self destruct!");
}
}
}
Thanks in advance.