Programs Submitted by Other Engineers

program for Reverse String in java

/* Program to perform reverse string operation using CharAt method*/ class reverse_string { public static void main(String args[ ]) { String reverse_string1 = “HOTJAVA”; StringBuffer reverse_string2 = new StringBuffer(); int i,j,len = reverse_string1.length(); System.out.println(“Original String is : Read more…

Computer Network

crc cyclic redundancy check program in java

import java.util.Scanner; class CRC { public static void main(String args[]) { Scanner sc=new Scanner(; int m,g[],n,d[],z[],r[],msb,i,j,k; System.out.print(“Enter no. of data bits : “); n=sc.nextInt(); System.out.print(“Enter no. of generator bits : “); m=sc.nextInt(); d=new int[n+m]; g=new Read more…