How to assign values to Attributes by passing argument using from method?

I need to assign YEAR, MONTH, DAY attributes to values just only using one set method. therefore I pass DATE.YEAR, DATE.MONTH, DATE.DATE as an argument also with values by calling set method line by …

Can I use a randomly generated number as a parameter to a method in Java?

So I’m very new to Java so this question might have a pretty simple answer. I’m trying to create a Magic8 ball program and I want the fortune to depend on the randomly generated number, but it’s …

Send string value from one method to another

My first method deviceList is able to work successfully and I am able to store a value in the variable String.id. I am then trying to use that string in my second method addReview1 to implement that …

Creating a sorted link list out of a normal linked list

As I’ve just started programming a few months back a lot of new information is coming and I’m having trouble catching up.So here I have created what I thought was a sorted linked list.Turns out it is …

Calling methods and how to use them

The task I am trying to do is to utilise the given classes and methods are to take the money from the richest account and give it to the poorest so they have the same balance and to print “(name) has $…

ATM Machine in Java

I have been trying to figure out what is going wrong with this program I’m writing. Heres the full description of what I’m trying to do: Use the Account class created in Programming Exer- cise 9.7 to …