Hello everybody! I am a beginner in Java and computing at all. I need to make some tasks if you help me,please.
So, the first taks is:
Write down what is stored in s2 after the following Java code has been executed:
String s1= new String("Hello");
String s2= new String("The answer is: ");
if (s2=="Hello") s2 = s2+"yes"; else s2=s2+"no";
write a java method called factorialSum,that takes two parameters called a and b. The method should calculate the factorial of both these numbers,then add them together. Method should return the result of calculation from the method as an integer, and aslo the print result to the console. It should also print an error message if any of the given parametrs are less than 1.
Thank you! I appreciate your help
I'm sorry,I forgot to add my code:
1) "Then answer is: no"
2) public int factorialSum()
int factorial =a;
int factorial =b;