mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 13:34:54 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user