Posts by Diogo dos Santos • 39 points
3 posts
-
-2
votes1
answer64
viewsQ: How to calculate item price from random quantity of items sold?
I’m solving a problem, and one of the parts of it is calculating the price of an item based on the random amount of this same item sold. For example: 4 items were sold, so the method should…
-
3
votes1
answer1345
viewsQ: Double chained list - Java
I’m trying to create (I’m learning) a doubly chained list based on an exercise, in which the list will be a train with wagons. The exercise asks to create a class "wagon", where the variables "wagon…
-
0
votes2
answers171
viewsQ: How to reference methods that use array as an object in the console?
I have a class with the following attributes and constructor: private Person[] persons; private int personCount; public PersonDatabase(int defaultPersonsCapacity){ persons = new…