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:
Advantages of Real-time Software. Maximum system consumption is achieved from real-time software because it produces more output by using all resources while keeping all devices active. There is no or little downtime in such systems. It can be used by hosted servers to get maximum results from hosting companies.
Explanation:
Nah, I am good
But thanks for the points
Answer:
a) Display only an important subset of the datapoints so as to not overwhelm the user.
It's important to show only the information that the user needs or requested. The user won't care about other data displayed on the screen that doesn't have anything to do with the information requested.
Displaying more information or extra details that are not needed would only confuse the user and also slow the process. For example, imagine having this data:
- id_employee
- name
- middle_name
- address
- birth_date
- gender
- role
Some datapoints from the list above could be omitted, depending on which information the user needs to consult. By doing an overview visualization, maybe the user would only like to see the employee's name, role and id.