fork download
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8. Scanner in = new Scanner(System.in);
  9. System.out.println("Введите ваше имя, пожалуйста и начнем работу:");
  10. String name = in.nextLine();
  11. String gretting = new String("Здравствуйте, %1%s, мы готовы, введите число:");
  12. String mod_gretting = String.format(gretting, name);
  13. System.out.println(mod_gretting);
  14. int number = in.nextInt();
  15. for (int i = 1; i <= 10; i++){
  16. System.out.print(number * i + " ");
  17. }
  18.  
  19. }
  20. }
  21.  
Runtime error #stdin #stdout #stderr 0.08s 380224KB
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)