Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong.

This commit is contained in:
Maria Lungeanu 2020-05-14 19:36:06 +03:00
parent bcf808a238
commit 63e5ce4c8f

View File

@ -3,7 +3,7 @@ package Maths;
import java.lang.Math; import java.lang.Math;
import java.util.Scanner; import java.util.Scanner;
public class algorithm { public class PrimeFactorization {
public static void main(String[] args){ public static void main(String[] args){
System.out.println("## all prime factors ##"); System.out.println("## all prime factors ##");
Scanner scanner = new Scanner(System.in); Scanner scanner = new Scanner(System.in);