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 Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. String Money = "CHA CHING!";
  14. System.out.println(Money);
  15. String thermomemter = "my thermometer";
  16. int temp = 58;
  17. String thermometer = temp + "degrees Celsius (toasty)";
  18. System.out.println(thermometer);
  19. }
  20. }
Success #stdin #stdout 0.15s 55616KB
stdin
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		String Money = "CHA CHING!";
		System.out.println(Money);
		String thermomemter = "my thermometer";
		int temp = 58;
		String thermometer = temp + "degrees Celsius (toasty)";
		System.out.println(thermometer);
	}
}
stdout
CHA CHING!
58degrees Celsius (toasty)