WHAT'S NEW?
Loading...
Showing posts with label java programs. Show all posts
Showing posts with label java programs. Show all posts
0

FUNCTIONS BASED PROGRAM class a{    public static void main(String args[])    {        five ob1=new five();   //syntax: class_name objectname= new classname();        five ob2= new five();               ob1.func(100);        ob2.func(300);    }}class five{    void...

0

FUNCTIONS BASED PROGRAM - convert inches & feet into cm class distance{    double distinches, distfeet;       void func(double inches, double feet)    {        distinches=inches;        distfeet=feet;    }       void compute()    {        double...

0

FUNCTIONS BASED PROGRAM - convert celcius into fahrenheit class display{    public static void main(String args[])    {        temperature ob= new temperature();        double temp=ob.convert(25.0);        System.out.println("The temperature in fahrenheit is =...

0

FUNCTIONS BASED PROGRAM - void function & function with a return type class aman{    public static void main(String args[])    {        func ob=new func();        int ans=ob.sum(10,20); //function call        System.out.println("the...

0

ICSE BOARD QUESTION 2008 - program to input a string and print out the text with the uppercase and lowercase letters reversed , but all other characters should...

0

USE OF FUNCTIONS & CONSTRUCTORS_ROBIN import java.io.*;class usesales{    public static void main(String args[]) throws IOException    {        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));        sales ob=new sales();        sales ob1=new sales(001, "Robin", 3,...

0

Passing object as parameter: Calculate distance between two points Coordinate Geometry class sukhman{    public static void main(String args[])    {       point conobj=new point(1,1);  //parametrized constructor will get invoked       point...

0

Program to accept 5 strings on Terminal window /* * Program to accept 5 strings on Terminal window */import java.io.*;public class yps1{    public static void main(String args[]) throws IOException    {       ...

0

To accept 10 decimal values from the user on Terminal Window import java.io.*;public class yps{    public static void main(String args[]) throws IOException    {        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));        double...

0

To store first 10 prime numbers in an array public class yps{    public static void main(String args[])    {       int p[]=new int[10];  //to store 10 prime numbers       int num,...

0

Use of arrays, functions, constructors in JAVA & BLUE J import java.io.*;class usecanteen{    public static void main(String args[])throws IOException    {       canteen ob=new canteen();  //object creation               int itemnumber=2;        int...

0

Use of arrays, functions, constructors in JAVA & BLUE J import java.io.*;class usecanteen{    public static void main(String args[])throws IOException    {       canteen ob=new canteen();  //object creation               int itemnumber=2;        int...

0

Place an order for books using functions & constructors - Java & Blue J program import java.io.*;class useorder{    public static void main(String args[]) throws IOException    {        BufferedReader br=new...

0

disease detection using java & blue j import java.io.*;class usediagnose1{    public static void main(String args[]) throws IOException    {        String d1="Hypertension";        String d2="Diabetes";        String s1[]={"High BP", "Obesity", "Breathlessness", "Chest...

0

Functions and Arrays for computation of result - JAVA & BLUE J PROGRAM /* * Computer Science Project on resultClass : ResultMember Variables:rollno, Name, ,avg  ,grade, array of marks...

0

SELECTION SORT import java.io.*;class selectionsort{public static void main(String args[])throws IOException{    int x[]=new int[10];    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));    System.out.println(" Enter 10 Integer values ");    for(int i=0;i<10;i++)    {         ...

0

            This will enter a sentence and find the vowel /** * The class Vowel_Word inputs a sentence and prints words which begin...

0

//*************************************************************** // // Title : Time // Author : Divya H Jain // Due date: 10-5-14 // // This Time object provides a number of facilities to keep...