FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-programs/try1.java at main · tejaspundpal/Java-programs · GitHub
tejaspundpal
/
Java-programs
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-programs
/
try1.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (27 loc) · 850 Bytes
Breadcrumbs
Java-programs
/
try1.java
Copy path
File metadata and controls
29 lines (27 loc) · 850 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
18
19
20
21
22
23
24
25
26
27
28
29
import
java
.
util
.*;
public
class
try1
{
public
static
void
main
(
String
[]
args
) {
Scanner
in
=
new
Scanner
(
System
.
in
);
String
InputValue
;
String
name
[] =
new
String
[
6
];
int
number
[] =
new
int
[
6
];
String
LargeName
=
""
;
int
largest
=
0
;
int
as
=
3
;
for
(
int
x
=
1
;
x
<=
as
;
x
++) {
System
.
out
.
print
(
" Name & number : "
);
InputValue
=
in
.
nextLine
();
String
[]
Value
=
InputValue
.
split
(
" "
);
name
[
x
] =
Value
[
0
];
number
[
x
] =
Integer
.
parseInt
(
Value
[
1
]);
}
for
(
int
x
=
1
;
x
<
number
.
length
;
x
++) {
if
(
number
[
x
] >
largest
) {
largest
=
number
[
x
];
LargeName
=
name
[
x
];
}
}
System
.
out
.
println
(
"Result = "
+
LargeName
+
" "
+
largest
);
}
}
Back
|
FazBrowse Home
|
New Git URL