All Questions
174 questions
6
votes
1
answer
663
views
Crossword puzzle app
I was hoping someone could give me any tips or advice on this program I wrote for my high school class. The point of the program is to create a workable crossword puzzle in the console. If it works ...
7
votes
6
answers
9k
views
Printing a Hollow Butterfly pattern
I am a beginner to Java and have studied up to loops only. After loops lecture above pattern was given to print as homework. I have successfully managed to print this pattern with following code:
<...
2
votes
1
answer
88
views
ArrayPractice with shifting arrays, generate new arrays populated with even numbers, and more
This is from my second homework assignment in my Data Structures class (in which we use Java), we were simply given the task of filling out the functions shown below (they were empty before) and I was ...
4
votes
3
answers
463
views
Analyzing baby name data in CSV files
First time using code review. I am still a student so there will be a lot to be desired.
Basically as part of the homework we are told what methods to create (Method names are given with their ...
2
votes
2
answers
2k
views
Input validation that verifies a boolean assignment using a Boolean object
Taking online college course and I'm new to Java. We just learned about input validation. I've used input validation pretty comfortably for strings, ints, and whatnot. But I had to validate a boolean ...
3
votes
1
answer
647
views
ATM Console Program with Java
I am a freshman Computer Engineering student.
Variable names are pretty straightforward; I believe it would be easy to understand.
Program explanation:
First you have to create an account and deposit ...
0
votes
2
answers
140
views
Searchable database with Java and SQL
What does the code do?
Albeit unfinished (it does work, it's just not complete yet), the code creates a database (members.db) where telephone numbers, IDs, and ...
2
votes
1
answer
1k
views
Java implementation of Employee class hierarchy
We were tasked to do this assignment where there is the base class employee and two derived class part-time and full-time employees. Here is what I came up with:
...
1
vote
1
answer
493
views
Java implementation of Yahtzee
I'm trying to implement the game of Yahtzee in java.
This is for a project at my university so I tried to be as clean and to use the best code practices as possible. The part in particular that I ...
5
votes
1
answer
709
views
Space Invaders clone for a college project
Edit: the project was submitted, and I got a good grade! :D
I am finishing up a project for my computer science class. The project is a space invaders clone that uses the JavaFX library to provide ...
2
votes
2
answers
192
views
Java BMI Calculator [closed]
I'm learning java this week.
Please reviews my code for BMI calculator using java, need some your feedback. Thanks before!
This Assignment:
My code
...
4
votes
3
answers
803
views
FIFO array/queue
I'm new to programming and was tasked with programming a generic circular FIFO queue, without using anything but an underlying array and self-programmed methods. I still don't know how to approach ...
1
vote
1
answer
272
views
Car price calculator
I'm writing this simple program for school, and using NumberFormat on all the variables seems very repetitive (Note that we were asked to use the ...
8
votes
1
answer
106
views
Parenthesis-realigning program
This is my code for an assignment. The task is to take a user input in form of a sequence of parenthesis' followed by an E to mark its end and determine whether it is a correct sequence (as an example ...
5
votes
3
answers
271
views
Hotel booking with multiple options. Improvement through subclasses?
The code below runs perfectly fine as I want it to. I'd like to create more subclasses to get a better overview over the whole code. Can I place the setter and getter as well as the methods into the ...