Skip to main content

Posts

Showing posts from August, 2016

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 Tutorials- While Loops

4. While Loops public class App { public static void main(String[] args) { int process =0;                                               //process starts at 0 while(process<=10){                    //process validation (whlie statement) System.out.println("ID: "+ value);  //Output process as ID process= process+1;                     // process increase by 1 } } } Output: ID: 0  ID: 1  ID: 2  ID: 3  ID: 4  ID: 5  ID: 6  ID: 7  ID: 8 ID: 9  ID: 10

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.

JAVA Eclipse Tutorials - Hello World!

1. First program Install java and Eclipse Then follow the Steps: File-New-Java Project- Enter Project Name- Finish Go to Project Name you Entered -File-New Class- Application public class Application {                                        //Class name same as java file name public static void main(String[] args) {           //Main method String text ="Hello World !";                 //String data type System.out.println(text);                        //print method } } OUTPUT:  Hello World !