Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
99 views

Registering listeners according to SOLID pricipals

I'm practicing oop concepts these days. To figure it out I tried the below problem. There is a sensor monitoring system. It is a simple system that prints a value, ...
Neminda Prabhashwara's user avatar
1 vote
3 answers
127 views

"Human" interfaces with two implementation classes

The Helloworld class executes all of the methods. Human is the interface, and Nate & <...
nate's user avatar
  • 13
2 votes
1 answer
3k views

Implementation of generic unordered list in java

This question is a follow-up question of this question. These features are added to the new class - Generic class User is capable of setting the size ...
Hamidur Rahman's user avatar
1 vote
2 answers
2k views

Creating a Student class for a project

To recover from yesterday's disaster, I re-read the SOLID principles and refactored my code. Hopefully I did a better job than yesterday. I wanted to keep my Student...
user avatar
3 votes
3 answers
5k views

OOP modelling of a car agency

Exercise: A car dealer wants a computer system to manage the data of their vehicles and classify them by type. All cars have the following data Engine serial number Brand Year ...
I likeThatMeow's user avatar
9 votes
1 answer
3k views

OOP modeling of a boat rental system

I have some question about this exercise, did I model the problem correctly (the code works)?. If I did it correctly, Is there anything that can improve the code?. For example, how could I avoid the ...
I likeThatMeow's user avatar
7 votes
2 answers
331 views

Object-oriented Quarantine implementation

I am a newbie in thinking object oriented solution for a problem, so I am trying to improve. I have tried to implement a quarantine assignment. Here is a requirement with unit test cases. I am trying ...
Indiver kumar's user avatar
6 votes
1 answer
3k views

Generating RPG Characters (Objects)

I am a beginner Java programmer. I have just finished up an assignment and would appreciate some advice and/or constructive criticism on my program. I am trying to ensure I do not advance my knowledge ...
jzbakos's user avatar
  • 415
5 votes
3 answers
5k views

Generating 50 Random Shapes

I am a beginner Java programmer. I have just finished up an assignment and would appreciate some advice and/or constructive criticism on my program. For context, I have the assignment details, ...
jzbakos's user avatar
  • 415
0 votes
2 answers
242 views

Very complicated Java HelloWorld app

This program attempts to shows the basic concepts of inheritance and polymorphism. In what ways could the code be modified to better demonstrate those concepts? The interface, abstract class and the ...
Jim Ferguson's user avatar
3 votes
1 answer
127 views

Overloaded applyRestrictionsToCriteria(…) methods

We want to refactor two methods that are exactly the same, except for one difference: one takes an org.hibernate.Criteria and the other ...
Kevin Cruijssen's user avatar
2 votes
0 answers
121 views

Interface modelling for a journaling program in Java

My program's Journal consists of unique Pages identified by their Day. Within those pages ...
Hadi Satrio's user avatar
2 votes
4 answers
251 views

Making a better Engineer

I have an Engineer which doesn't look very good. How can I make him better organized? What about good practices? Interface: ...
Iaroslav Karandashev's user avatar
10 votes
2 answers
451 views

Functional interface hierarchy in Java 8

I just created the following code and am wondering whether it is logically correct (all other feedback is of course also welcome): ...
skiwi's user avatar
  • 10.7k
2 votes
1 answer
681 views

Ogg audio format conversion classes

This is my command interface: public interface IConverter { void convert(); } This is my Receiver class: ...
user962206's user avatar