FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hackerrank-java-basic-skill-test/src/HowWillYouCompare.java at master · maregela/hackerrank-java-basic-skill-test · GitHub
maregela
/
hackerrank-java-basic-skill-test
Public
forked from
anishLearnsToCode/hackerrank-java-basic-skill-test
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hackerrank-java-basic-skill-test
/
src
/
HowWillYouCompare.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (14 loc) · 387 Bytes
Breadcrumbs
hackerrank-java-basic-skill-test
/
src
/
HowWillYouCompare.java
Copy path
File metadata and controls
17 lines (14 loc) · 387 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
15
16
17
import
java
.
util
.
Arrays
;
public
class
HowWillYouCompare
{
private
static
class
Comparator
{
public
boolean
compare
(
int
a
,
int
b
) {
return
a
==
b
;
}
public
boolean
compare
(
String
a
,
String
b
) {
return
a
.
equals
(
b
);
}
public
boolean
compare
(
int
[]
a
,
int
[]
b
) {
return
Arrays
.
equals
(
a
,
b
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL