fork download
  1. package com.company;
  2. import java.util.ArrayList;
  3.  
  4. public class Main {
  5.  
  6. public static void main(String[] args) {
  7. ArrayList numbers = new ArrayList();
  8. for (int i = 1; i <= 100; i++) {
  9. numbers.add(i);
  10. }
  11. for (int i = 2; i<=10; i++){
  12. for (int b = 2; b<=10; b++){
  13. int c = i*b;
  14. numbers.remove(c);
  15. }
  16. }
  17.  
  18.  
  19.  
  20.  
  21. }
  22. }
  23.  
Runtime error #stdin #stdout #stderr 0.07s 380160KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "main" java.lang.NoClassDefFoundError: Main (wrong name: com/company/Main)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)