Как я могу проверить, содержит ли параметр переменную или строку? Например:
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) { }