TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
CharAt Program in java
Alagunila Meganathan
Aug 01
2016
Code
734
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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