Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
CharAt Program in java
WhatsApp
Alagunila Meganathan
Aug 01
2016
791
0
0
CharAt.rar
import
java.io.*;
class
CharAt{
public
static
void
main(String[] args){
try
{
BufferedReader object=
new
BufferedReader(
new
InputStreamReader(System.in));
System.out.println(
"Enter the String"
);
String s=object.readLine();
int
len=s.length();
System.out.println(len);
char
char1=s.charAt(
4
);
System.out.println(char1);
}
catch
(Exception e){}
}
}
Java
Up Next
CharAt Program in java