Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Satanand Tiwari

Satanand Tiwari

Satanand Tiwari has asked 1 questions and find answers to 0 problems.

Stats

5
EtPoint
0
Vote count
1
questions
0
answers

About

//Run this code in java compiler

class Mylife{
public static void main(String arg[])
{
String r1=my_reaction("bad");//reaction in bad setuation
String r2=my_reaction("Very Bad");//reaction in very bad setuation
String r3=my_reaction("Good");//reaction in good condition
String r4=my_reaction("another");//reaction in another condition
myaction=r1+r2+r3+r4;
    System.out.println(myaction);
}

public static String my_reaction(String Setuation){
if(Setuation=="bad"){
    String active="I";
    return active;
}
else if(Setuation=="Very Bad"){
    String active="Enjoy";
    return active;
}
else if(Setuation=="Good"){
    String active="Every";
    return active;
}
else{
    String active="Movment";
    return active;
}
} 
}

Satanand Tiwari answers