what's your choices for this question
Answer:
//here is code in java.
import java.util.*;
class Solution
{
// main method of class
public static void main (String[] args) throws java.lang.Exception
{
try{
// declare an initialize first string variables
String st1="hello";
// declare an initialize first string variables
String st2="world";
// create another string variable
String st3;
// exchange the value of both string variables
st3=st1;
st1=st2;
st2=st3;
System.out.println("value of first String after exchange: "+st1);
System.out.println("value of second String after exchange: "+st2);
}catch(Exception ex){
return;}
}
}
Explanation:
declare and initialize two string variables.Create another string variable "st3". first assign value of "st1" to "st3" after then value of "st2" to "st1" and then assign value of "st3" to "st2". This will exchange the values of both the string.
Output:
value of first String after exchange: world
value of second String after exchange: hello
Answer:
Hello! The answer to your question is function I had the same question and got it right!
Explanation:
Hope this helped:)
Answer:
The offset
Explanation:
In the question, we understand that the original text is HELLO and the encrypted text is OLSSV.
It should be noted that O replaced H, L replaced E, S replaced L and V replacement O.
This is made possible by a term refered to as offset.
The offset is used to determine the character that will replace another when it is encrypted.
7 characters after H is O; this is same for every other characters in the text.