CRC (Java)

Problem Definition: Write a program in Java to find CRC of a given number. import java.util.Scanner; class CRC{ public static void main(String args[]){ Scanner sc = new Scanner(; //Input Data Stream System.out.print(“Enter data stream: “); String datastream = sc.nextLine(); System.out.print(“Enter generator: “); String generator = sc.nextLine(); int data[] = new int[datastream.length() + generator.length() – 1]; int divisor[] = new int[generator.length()]; for(int i=0;i<datastream.length();i++) data[i] = Integer.parseInt(datastream.charAt(i)+””); for(int … Continue reading CRC (Java)