1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Serjik [45]
1 year ago
10

See attached. I have code typed out but still having problems.

Computers and Technology
1 answer:
densk [106]1 year ago
5 0

The constructor that takes four arguments: the title, the artist, and two arguments representing the song length in minutes and seconds is given below:

<h3>The Java Code</h3>

public class Song

{

   // instance variable declaration

  private String songTitle;

  private String songArtist;

  private Duration songLength;

// Constructors

  public Song (String title , String artist , int min , int sec )

  {

       this( title , artist , Duration.ofMinutes( min ).plusSeconds( sec ) ) ;

  }

  public Song (String title , String artist , int totalSeconds )

  {

      this( title , artist , Duration.ofSeconds( totalSeconds ) ) ;

  }

  public Song (String title , String artist , Duration duration )

  {

      this.songTitle = title;

      this.songArtist = artist;

      this.songLength = duration ;

  }

Read more about java programming here:

brainly.com/question/18554491

#SPJ1

You might be interested in
So has anyone opened the link/file those people are giving out as answers? Like what are they, viruses, answers, nothing??? Some
SIZIF [17.4K]

Answer:

I see them too! I think their viruses. I tried to answer a few questions and they are on 90% of people questions. would not click on

3 0
3 years ago
Read 2 more answers
Who is better, Tom, Ben, Hank, Angela, or Ginger
Maslowich

Answer:

Tom

Explanation:

5 0
2 years ago
Read 2 more answers
Krystal recorded her times for all her cross-country meets this season. To sort her data showing the lowest times first, what wi
devlian [24]
Sort ascending would be the correct one, since you are going from the lowest value to the highest
3 0
3 years ago
Read 2 more answers
Why would a person who handles electronic components wear a grounded wrist strap
Otrada [13]
Normally, wrist straps like this are used to prevent static electric discharge, which can ruin electric components.<span />
5 0
3 years ago
If you have a list of words that you wish to make into a bulleted list, you must first highlight or ________ the words with your
motikmotik
<h3>Answer:</h3>

C. select

<h3>Explanation:</h3>

A. if you delete the words you can make them into a bulleted list

B. if you remove them you can make them into a bulleted list neither

D. Copying the words doesn't need for that

Hope it helped you

3 0
4 years ago
Other questions:
  • Variable names may contain spaces and punctuation symbols. True False
    15·1 answer
  • Match the terms related to the web with their explanations
    6·1 answer
  • Makes it possible to distribute both power and data using ethernet cabling. select one:
    12·1 answer
  • FOR 15 POINTS AND BRAINLIEST!<br> What are the possible consequences of Invasion of privacy?
    8·1 answer
  • Michelle has developed a new program for computers. She later fixed an error found in the program. What is the best way for her
    5·1 answer
  • RAM that can be changed. True or False
    9·2 answers
  • Which of the following are common data types? Check all that apply.
    6·1 answer
  • ​ In the U.S., a work that was created in 2000 by an individual author who died in 2005 will be protected by copyright until ___
    5·2 answers
  • Pls help I will give points
    7·1 answer
  • What is the type of data in the list [103, 405, 527, 396, 503]?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!