From 63e5ce4c8f7657a8d9713bd1d7f94485b07635f4 Mon Sep 17 00:00:00 2001 From: Maria Lungeanu Date: Thu, 14 May 2020 19:36:06 +0300 Subject: [PATCH] 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. --- Maths/PrimeFactorization.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maths/PrimeFactorization.java b/Maths/PrimeFactorization.java index 9f647d31..a488bf8e 100644 --- a/Maths/PrimeFactorization.java +++ b/Maths/PrimeFactorization.java @@ -3,7 +3,7 @@ package Maths; import java.lang.Math; import java.util.Scanner; -public class algorithm { +public class PrimeFactorization { public static void main(String[] args){ System.out.println("## all prime factors ##"); Scanner scanner = new Scanner(System.in);