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
dont answer it of course. if its asking for credit card information then worst.
Answer:
false
Explanation:
we use save to save a copy of your data
Answer:
answer it yourself or ask your teacker
Explanation:
<span>A database management system (DBMS) is defined as a computer software application which interacts with the user, other applications, and the database itself to capture and analyze data. A DBMS is generally designed to allow the definition, creation, querying, update, and administration of databases.</span>