All Questions
12 questions
2
votes
1
answer
163
views
Java program for complex math utilities
I've got 2 Java programs, with the aim of solving some matrix math that involves complex numbers (an EE problem). Both programs have main functions, the one with all the complex math operations has a ...
1
vote
1
answer
152
views
Interconnect Recipe and Notes
I'm currently working through a tutorial. The project is a recipe website.
One of the lessons to "save some lines of code" and use bidirectional setters for bidirectional relations of ...
1
vote
1
answer
482
views
Model animals using inheritance in Java
I was assigned the following problem:
You've gone back in time to 500BC Athens and Socrates wants you
to build him an app to help classify animals.
Build the classes ...
1
vote
1
answer
66
views
Android APP user registration page implementation
This is a follow-up question for Android APP User class implementation. I am attempting to build a user registering system and this post shows the user registration page implementation.
The ...
1
vote
1
answer
80
views
Android APP Password Strength Assessment class implementation
This is a follow-up question for Android APP User class implementation. I am attempting to create a password strength assessment class which is named ...
0
votes
1
answer
90
views
Android APP User class implementation
This is a follow-up question for Android app class serialization. The implementation of User class has been updated and the functionality of null string checking, ...
0
votes
1
answer
425
views
Unit tests for User class with JUnit 5
This is a follow-up question for Android app class serialization. Some problems have been mentioned in forsvarir's answer. Then, I am following JUnit 5 User Guide to redesign the test cases for ...
4
votes
2
answers
2k
views
Should I create an abstract runnable? I've 4 sub-classes which perform similar work but only 3 of them have identical constructors
I've added the code for an abstract thread class and 2 sub-classes. The structure and job of the threads (sub-classes) is identical except one difference: ONE of ...
5
votes
1
answer
1k
views
Improving an IRC bot
I've recently started working on a java project, and the main purpose of it is to get better at Java.
I've decided to make an IRC bot for twitch. But after some hours of progress I already see my Bot ...
6
votes
2
answers
340
views
Reorganize a maze game from one large class into smaller classes
I'm new to Java and I really don't understand how to make more classes work like one. So if anybody could explain and help me divide my large code into smaller classes (like Player.java, Main.java, ...
8
votes
4
answers
36k
views
Random password generator
I just wrote my first Java class, and I wanted to share it with you and maybe get some quick check from more experiences coders than I am.
I want to learn OOP, and Java is just the tool I thought was ...
3
votes
2
answers
178
views
Subclassing or not?
I have a class called Foo
...