Following are the code in java to reverse any string without using reverse function.
import java.util.*; // import package
class Main // class
{
public static void main(String args[]) // main class in java
{
String s, r = ""; // string variable
Scanner out = new Scanner(System.in); // scanner classes to take input
System.out.println("Enter a string to reverse");
s = out.nextLine(); // input string
int l1 = s.length(); // finding length of string
l1=l1-1;
for ( int i = l1 ; i >= 0 ; i-- ) // for loop to reverse any string
{
r = r + s.charAt(i);
}
System.out.println(" The Reverse String is: "+r); // print reverse string
}
}
Explanation:
firstly we input any string ,finding the length of that string then after that iterating over the loop by using for loop and last display that reverse string
output
Enter a string to reverse
san ran
The Reverse String is: nar nas
Answer:
20 rpm
Explanation:
if the lager tooth gear is moving a 10 rpm which will move slower than the smaller 20 tooth gear it will push it faster than the 10 rpm
<span>Landforms that could be created at convergent boundaries would consist of: volcanoes, mountains, trenches, volcanic islands, and even deserts could result from effects of converging boundaries. The landforms are mountains.</span>
Answer:
The answer is "how the water evaporates and makes snow from the rainwater".
Explanation:
In the question, the choices are missing and by searching, we find the choice that is "how the water evaporates and makes snow from the rainwater", that's why we can say that it is the correct choice.
The correct answer is A : Business Process