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:
parent
bcf808a238
commit
63e5ce4c8f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user