FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaRepository/Boris/src/laba22/TestTimeInterval.java at master · Bronic86/JavaRepository · GitHub
Bronic86
/
JavaRepository
Public
forked from
karzhouAndrew/JavaRepository
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaRepository
/
Boris
/
src
/
laba22
/
TestTimeInterval.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 510 Bytes
Breadcrumbs
JavaRepository
/
Boris
/
src
/
laba22
/
TestTimeInterval.java
Copy path
File metadata and controls
14 lines (12 loc) · 510 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package
laba22
;
//Проверка класса
public
class
TestTimeInterval
{
public
static
void
main
(
String
[]
args
) {
TimeInterval
firstInterval
=
new
TimeInterval
(
2
,
3
,
70
);
TimeInterval
secondInterval
=
new
TimeInterval
(
3660
);
System
.
out
.
println
(
secondInterval
.
intervalCompare
(
firstInterval
));
System
.
out
.
println
(
secondInterval
.
equals
(
firstInterval
));
System
.
out
.
println
(
firstInterval
);
System
.
out
.
println
(
secondInterval
.
intervalInSeconds
());
}
}
Back
|
FazBrowse Home
|
New Git URL