Category: JAVA Threads

JAVA Program using Threads to Print Fibonacci Series and Cube of Numbers 0

JAVA Program using Threads to Print Fibonacci Series and Cube of Numbers

Follow me JAVA Program using Threads to Print Fibonacci Series and Cube of Numbers: class cub extends Thread { public void run() { System.out.println(“First series:”); int j; for(int i=1;i<=20;i++) { j=i*i*i; System.out.print(“\t”+j); } System.out.println();...

JAVA Program using Threads to Print Fibonacci Series and Squares of Numbers 0

JAVA Program using Threads to Print Fibonacci Series and Squares of Numbers

Follow me JAVA Program using Threads to Print Fibonacci Series and Squares of Numbers: class sqr extends Thread { public void run() { int j; for(int i=1;i<=25;i++) { j=i*i; System.out.println(j); } } } class...

JAVA Program using Threads to Print Even Numbers up to 100 and Alphabets alternately 0

JAVA Program using Threads to Print Even Numbers up to 100 and Alphabets alternately

Follow me JAVA Program using Threads to Print Even Numbers up to 100 and Alphabets alternately: import java.io.*; class alpha extends Thread { public void run() { char i; for(i=’A’;i<=’Z’;i++) { System.out.print(“\t”+i); i++; }...

JAVA Program using Threads to Print Table of 20 and Even Numbers up to 100 0

JAVA Program using Threads to Print Table of 20 and Even Numbers up to 100

Follow me JAVA Program using Threads to Print Table of 20 and Even Numbers up to 100: import java.io.*; class table extends Thread { public void run() { int t=0; int n=20; for(int i=1;i<=10;i++)...

JAVA Program using Threads to Reverse String and Count Number of Vowel 0

JAVA Program using Threads to Reverse String and Count Number of Vowel

Follow me JAVA Program using Threads to Reverse String and Count Number of Vowel: import java.io.*; class rev extends Thread { public void run() { try { String a; int len; String rev=””; System.out.println(“Enter...