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
One of the most often used methods of linear dimension reduction is principal component analysis (PCA). It can be used both on its own and as a starting point for further dimension reduction techniques.
By projecting the data onto a set of orthogonal axes, the projection-based PCA approach changes the data. An unsupervised linear transformation method known as Principal Component Analysis (PCA) is frequently utilized in a variety of domains, most notably for feature extraction and dimensionality reduction. Data compression, made possible by dimensionality reduction, results in less storage space being used. It speeds up computation. It also aids in removing any extraneous features. Since PCA is a variance-maximizing activity, normalization is crucial. our original data is projected in a manner that maximizes variance.
Learn more about dimension here-
brainly.com/question/28688567
#SPJ4
The computer device that works like the human central nervous system is the motherboard. The motherboard is the main PCB (Printed Circuit Board) that exists inside most PC's, and in certain other systems. The function of the motherboard is to contain most of the essential components to a functioning system. This includes the CPU (Central Processing Unit) and storage of memory.