In the given java program code, a class WordScramble is declared, inside the class, a static method wordScramble is declared, that accepts two string parameter that is "rem and scr".
Inside the method a conditional statement is used in the if the block it checks rem variable value is empty so, it will add rem and scr value. Otherwise, it will go to else block in this a loop is defined, which calls the method, which calculates rem length that is 2, and this method call two times to rearrange the values.
In the next step main method is defined that calls wordScramble method, which passes only one argument "ab" in its first parameter.
This method accepts one string value, in which there are two numbers "a and b" that's why the method will run two times.
It is a computer aided technique of searching and evaluating a bulk of data in order to obtain useful information.
This technique searches through the data to find hidden patterns and uses statistical methods to find relationship among data for finding predictive information and for classification of data.
This is a mixture of different disciplines which include machine learning, statistics and artificial intelligence and also some mathematical methods.
Often the useful information is extracted from enormous database using modeling technique which is used to build a model from instances of the data where the solution is known and later apply this model on the instances where the solution is unknown.
In unsupervised data mining, the data analysis is not done by using modeling technique. In other words the labels are provided in order not draw inferences and prediction from data sets. Example is clustering.
In supervised data mining the model is developed to make inferences and classification. Example is neural networks.
For example data mining is used in Medicine industry to provide more accurate diagnostics and treatments on the basis of patient's medical history , physical examination or different patient tests data.
Data mining also makes it possible to manage health resources more efficiently and cost-effectively by detecting risks, predicting diseases in certain sections of the population or predicting hospitalization duration.