Answers for "how to accept all type in java"

0

how to accept all type in java

public void myFunc(int i)
{
System.out.println(i);
}
public void myFunc(double d)
{
System.out.println(d);
}
public void myFunc(String s)
{
System.out.println(s);
}
public void myFunc(boolean b)
{
System.out.println(b);
}
Posted by: Guest on September-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language