Мой желаемый результат - печать. Вы используете метод main@@@@. Вы отказались использовать это приложение в соответствии с нашими условиями, пожалуйста, попробуйте позже, но мое заявление о возврате ничего не печатает. Чего мне не хватает? Вот мой код
class demo {String applicationOutput (int eeter) {
if (eeter == 1 )
{
System.out.println("You have opted to use this application underour terms");
return "success and come";
}
else
{
System.out.println("@@@@You have declined to use this application under our terms");
return"please try again later";
}
}
} class demo1 {
public static void main (String[] args)
{
System.out.println("You are in the main method");
demo d = new demo();
d.applicationOutput(0);
}
}
Actual O / p; Вы находитесь в основном методе @@@@ Вы отказались использовать это приложение в соответствии с нашими условиями