Tuesday, 29 March 2016

Published 23:04:00 by with 0 comment

Pattern program in java

public class Triangle {     public static void main(String[] args) {         int i, j, t = 0;         int k;         for (i = 0; i <= 4; i++) {             for (j = t; j <= 4; j++) {                 System.out.print(" ");        ...
Read More
      edit

Sunday, 20 March 2016

Published 22:48:00 by with 0 comment

Write a program to Reverse a Array Elements in java

public class Reverse {     public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         System.out.print("Enter Size of an Array :");         int n = sc.nextInt();         int...
Read More
      edit
Published 22:33:00 by with 0 comment

Write a program to Linear Search in java

public class LinearSearch {     public static void main(String[] args) {         int n;         Scanner sc = new Scanner(System.in);         System.out.print("Enter Size of an Array  :");         n=sc.nextInt();  ...
Read More
      edit