Skip to main content

Posts

Showing posts with the label Java tutorial

Featured Post

Data Mining with Weka -Installation

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.

Java Tutorial - (Input) Scanner

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); } } 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.