Saturday, 7 February 2015

Exercise-4: How to use If Else Statement in Java Programming

package ifelse;
import java.util.Scanner;

public class Ifelse {
   
    public static void main(String[] args) {
       
        Scanner input = new Scanner(System.in);       
        System.out.print("Plz enter your digit number ");
       
        int value = input.nextInt();
       
        if(value>=20 && value <=25)
        {
            System.out.println("This is my choose value ");      
        }
        else
        {
            System.out.println("This is my not choose value ");
        }
    }
   
}

Exercise-3: How to use If Statement in Java Programming

package ifelse;
import java.util.Scanner;

public class Ifelse {
   
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int value;
        System.out.println("Plz enter your digit number ");
        value = input.nextInt();
        if(value>=20)
        {
            System.out.println("This is my choose value ");       
        }
       
    }
   
}

Exercise 2: Inputting and Echoing integer and string entered by user

package integerst;
import java.util.Scanner;


public class Integerst {
   
    public static void main(String[] args) {
       
        Scanner input = new Scanner(System.in);
        int serial;
        String content;
       
        System.out.print("Plz enter your serial ");
        serial = input.nextInt();
       
        System.out.print("Plz enter your content ");
        content = input.next();
       
       
        System.out.println("Your serial output:"+serial);
        System.out.println("Your content output:"+content);
       
    }
   
}

Exercise-1: Echoing words in Java

package pz;
public class Pz {
    public static void main(String[] args) {
        System.out.println("My name is Eng.(Md.Hasmot Ali)");
        System.out.println("This is my programming java");
        System.out.println("This is my blogspot");
        System.out.println("My university name AUB");
    }
  
}

Author Messages

 This is blogs my project programming Java language
Blogs provide an online space for reflective writing and commentary. Campus Pack blogs can be viewable by all students in the class and the instructor. Each student posts individual entries to the blog and the rest of the class can comment on their posts. In a Blackboard course campus pack blogs can be deployed for: 
Everybody plz help if these blogs worng talking.These site working running