FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-debugging/Java/q7.java at master · rajjitlai/code-debugging · GitHub
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
rajjitlai
/
code-debugging
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
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
code-debugging
/
Java
/
q7.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (13 loc) · 431 Bytes
Breadcrumbs
code-debugging
/
Java
/
q7.java
Copy path
File metadata and controls
13 lines (13 loc) · 431 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
q7
{
public
static
void
main
(
String
[]
args
) {
String
str
=
"hello"
;
char
[]
arr
=
str
.
toCharArray
();
int
n
=
arr
.
length
;
for
(
int
i
=
0
;
i
<
n
/
2
;
i
++) {
char
temp
=
arr
[
i
];
arr
[
i
] =
arr
[
n
-
i
];
arr
[
n
-
i
] =
temp
;
}
System
.
out
.
println
(
new
String
(
arr
));
}
}
Back
|
FazBrowse Home
|
New Git URL