Weka - Data mining Tool W eka is a tool for big data and data mining. It is used to various classification, experiments, and analysis over large data sets. Installation Guide -weka You can download Weka from here and follow the normal installation procedure. After completion you will get following window, here you can begin your classification or experiment on different data sets with Weka.
3. Scanner
import java.util.Scanner;
public class App{
public static void main(String[] args) {
//create scanner object
Scanner input = new Scanner(System.in);
//output the prompt
System.out.println("Enter a number: ");
//wait for the user to enter a number
int num = input.nextInt();
//output
System.out.println("you entered: "+num);
}
}
import java.util.Scanner;
public class App{
public static void main(String[] args) {
//create scanner object
Scanner input = new Scanner(System.in);
//output the prompt
System.out.println("Enter a number: ");
//wait for the user to enter a number
int num = input.nextInt();
//output
System.out.println("you entered: "+num);
}
}
Output :
User Input
Note:1. For: String line = input.nextLine(); and
Double value = input.nextDouble();
And 2. Always save java program as (In this case: App.java) class name.java.
Comments
Post a Comment