FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hackerrank-java-basic-skill-test/src/BitPuzzle.java at master · rakeshmatha/hackerrank-java-basic-skill-test · GitHub
rakeshmatha
/
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
/
BitPuzzle.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (13 loc) · 388 Bytes
Breadcrumbs
hackerrank-java-basic-skill-test
/
src
/
BitPuzzle.java
Copy path
File metadata and controls
13 lines (13 loc) · 388 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
public
class
BitPuzzle
{
public
static
void
main
(
String
[]
args
) {
try
{
Float
f
=
new
Float
(
"3.0"
);
int
x
=
f
.
intValue
();
byte
b
=
f
.
byteValue
();
double
d
=
f
.
doubleValue
();
System
.
out
.
println
(
x
+
b
+
d
);
}
catch
(
NumberFormatException
exception
) {
System
.
out
.
println
(
"ahhhh"
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL