Skip to content

Lesson5 task1#8

Open
miklashevich wants to merge 2 commits into
masterfrom
lesson5Task1
Open

Lesson5 task1#8
miklashevich wants to merge 2 commits into
masterfrom
lesson5Task1

Conversation

@miklashevich

Copy link
Copy Markdown
Owner

No description provided.

@@ -0,0 +1,28 @@
package by.miklashevich.lessson5.task1;

public class Time {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Конструктор через секунды должен быть в этом же классе, и если на вход будет поступать кол-во секунд превышающих минуту или час, то это число должно быть разбито по соответсвующим полям

Comment on lines +4 to +8
public static int countSec(int sec, int min, int hour){
int sum = ((3600 * hour) + (60 * min) + sec);
return sum;

}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Данный метод, должен выдавать секунды исходя из входных данных которые передаются в конструктор

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants