mercredi 29 août 2018

How I can check if parameter it contains variable or string

How I can check if parameter it contains variable or string for example :

    String text = "hello";

    //I want like this
    Demo(text);
    //But if he wrote like this give him error
    Demo("hello");

    public void Demo(String text) {

    }

Aucun commentaire:

Enregistrer un commentaire