Java Engineering Programs Blog

crc cyclic redundancy check program in java

import java.util.Scanner; class CRC { public static void main(String args[]) { Scanner sc=new Scanner(System.in); 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];...

remove

remove specific character from string in java

Learn Java Programming for Beginners import java.io.*; import java.util.*; import java.lang.*; class remove_character { public static void main(String args[])throws IOException { String s,character; char ch1,ch2; DataInputStream in=new DataInputStream(System.in); System.out.print(“Enter String: “); s=in.readLine( ); System.out.println(“”);...