import java.util.Scanner;
class Demo
{
    public void display(char ch)
    {
        System.out.println("Value of character = "+ch);
    }
    void display(char ch,int n)
    {
        System.out.println("Value of character = "+ch);
        System.out.println("Value of Integer number = "+n);
    }
    void display(int n,double x)
    {
        System.out.println("Value of Integer number = "+n);
        System.out.println("Value of Floating number = "+x);
    }
}
class MethodOverloading
{
    public static void main(String[] args)
    {
        Demo obj = new Demo();
        Scanner sc = new Scanner(System.in);
        char ch = sc.next().charAt(0);
        int n = sc.nextInt();
        double x = sc.nextDouble();
        obj.display(ch);
        obj.display(ch,n);
        obj.display(n,x);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: