All Questions
98 questions
5
votes
2
answers
295
views
2048 game in Java
I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
3
votes
1
answer
259
views
Simple blackjack program in Java
I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
3
votes
1
answer
557
views
Calculator (Java/Beginner)
I finished my first calculator using Java!
I try to apply Object-Oriented Programming!
I'll add my gitHub link if you're suited to viewing code on gitHub.
Here is a link to my GitHub Calculator ...
1
vote
1
answer
1k
views
Library system in Java with OOP
I am practicing designing OOP projects. And this is my first OOP design.
I need some reviews for the code and the design please.
Here is what they call UML.
The code.
...
5
votes
1
answer
2k
views
Java 2 Player Object Oriented CLI Chess Game
I just finished implementing a Java 2 player CLI chess game, it involves player putting in commands (i.e "move e2 e4" to move or "attack d1 d5" to capture.).
I am trying to follow ...
3
votes
1
answer
265
views
Java object oriented code to find points lying in a rectangle
I created this short code as an exercise to learn and practice my OOPS. The aim is - given a string of points as x1,y1,x2,y2... figure out how many of them lie ...
1
vote
1
answer
197
views
Console-based number guessing game
I received feedback that my code was convoluted and written with very bad practices.
Our tutor said explicitly that I should never write the code like that.
I'm just trying to wrap my head around the ...
1
vote
2
answers
110
views
Java dependency injection and hiding details of methods in "Database"-class
I recently posted a bunch of code of my to-do list application and after getting some very helpful and good suggestions on how to improve, I took a shot at it! Here's a link to the former post I made -...
2
votes
1
answer
2k
views
A to-do list application written with Java
This is the first project I have ever undertaken and now that I've gotten it to a point I feel comfortable with, I would love to get some review and tips for any improvement on it! I am especially ...
7
votes
1
answer
2k
views
Blackjack game in Java
So this is a blackjack game, any feedback or tips on what I should remove from the code that is not needed is very appreciated.
Note: some of the names of classes or variables are in Swedish but it ...
3
votes
1
answer
81
views
Data-type implementation for multiple dynamic histograms
This is almost exercise 3.2.14. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne (since I am self-studying, I changed it a little bit):
Develop a version of ...
1
vote
1
answer
99
views
Simplifying data-type implementation for axis-aligned rectangles using data-type implementation for closed intervals
This is exercise 3.2.8. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a data type Interval that implements the ...
6
votes
3
answers
887
views
Data-type implementation for rational numbers
This is exercise 3.2.7. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Implement a data type for rational numbers that supports addition, subtraction, ...
8
votes
1
answer
361
views
Data-type implementation for axis-aligned rectangles
This is exercise 3.2.1. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Consider the following data-type implementation for axis-aligned
rectangles, which ...
8
votes
1
answer
561
views
My first game - Arkanoid
I'm new to java and I have just finished my very first game - Arkanoid. I would appreciate, if anyone could look at this and tell me some advice and tips how can I optimize my code. Thank you. :)
I ...