Since my textbook is useless and doesn't help me learn, I've come to my fellow nerds to help me with some Java code.
Problem 1
Problem 2
I've gotten pretty much everything else so far, but I've been stuck on these two problems (and two others) for an hour so far. I'm probably overthinking it/tired, but I want to get my work done.