So … I had a therapy session. Messaging therapy. Yeah it’s not for me. I need to be able to speak with someone face to face, or audio or something. Just chatting over a messaging service is not what I had in mind when it comes to therapy options. Eh, it’s whatever. I’ll deal without the bullshit that is what was offered as a “free” plan. I’ll get over it. I’ll just find something else that will work for me, that actually works out well and will meet my needs better. I don’t blame the company or the person I spoke with briefly, but it’s just not for me it would seem. That’s okay though. I gave it a shot. Figured that’s the least I could do considering my mental health and everything that goes on. They just weren’t equiped with the kind of service I need I think. Maybe I don’t need therapy. Perhaps I can do without and I’ll be just fine. Yeah that’s a good idea. I can deal with life without the though process of a therapist seeking to help me. There’s nothing wrong with that. In a way...
Sometimes when you're writing a program in Java you want to clear the screen. That is to remove all text from the screen.
Here's how we would do this in Java:
private void clearScreen() {
try {
if (System.getProperty("os.name").contains("Windows")) {
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
} else {
new ProcessBuilder("clear").inheritIO().start().waitFor();
}
} catch (IOException | InterruptedException ex) {
ex.printStackTrace();
}
}
This takes into account both windows and non windows. cls for Windows, clear for linux etc.
Comments
Post a Comment