fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Main
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Salon salon = new Salon();
  13. salon.getInfo();
  14. }
  15. }
  16.  
  17. class Salon{
  18.  
  19. public string name = "Zhasmin";
  20. public string address = "Pushkin street 15";
  21. public string manager = "Laura";
  22. public int workerCount = 15;
  23.  
  24. public void getInfo(){
  25. Console.WriteLine("name is " + name);
  26. Console.WriteLine("address is " + address);
  27. Console.WriteLine(" manager is " + manager);
  28. Console.WriteLine(" worker count" + workerCount);
  29. }
  30.  
  31.  
  32. }
  33.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:19: error: cannot find symbol
	public string name = "Zhasmin";
	       ^
  symbol:   class string
  location: class Salon
Main.java:20: error: cannot find symbol
	public string address = "Pushkin street 15";
	       ^
  symbol:   class string
  location: class Salon
Main.java:21: error: cannot find symbol
	public string manager = "Laura";
	       ^
  symbol:   class string
  location: class Salon
Main.java:28: error: cannot find symbol
					Console.WriteLine(" worker count" + workerCount);
					       ^
  symbol:   method WriteLine(String)
  location: class Console
4 errors
stdout
Standard output is empty