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
calculate Method using Java
Senthilvelan Sambamoorthy
Aug 13
2016
Code
550
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ssvprg.rar
public
class
ssvprg
{
public
static
void
action(
int
value)
{
System.out.println(
"Int = "
+ Integer.toString(value));
}
public
static
void
action(String value)
{
System.out.println(
"Length = "
+ value.length());
}
public
static
void
main(String[] args)
{
// Call with Integer argument.
action(
1
);
// Call with String argument.
action(
"cat"
);
}
Java