fork download
  1. /* package whatever; // don't place package n```
  2. const canvas = document.getElementById('canvas');
  3. const ctx = canvas.getContext('2d');
  4. ctx.fillStyle = '#FFFFFF';
  5. ctx.fillRect(0, 0, 500, 500);
  6. function drawHeart(x, y) {
  7.   ctx.fillStyle = '#FF0000';
  8.   ctx.beginPath();
  9.   ctx.moveTo(x, y + 20);
  10.   ctx.quadraticCurveTo(x - 20, y, x, y - 20);
  11.   ctx.quadraticCurveTo(x + 20, y, x, y + 20);
  12.   ctx.fill();
  13. }
  14. for (let i = 0; i < 10; i++) {
  15.   drawHeart(Math.random() * 450, Math.random() * 450);
  16. }
  17. ```ame! */
  18.  
  19. import java.util.*;
  20. import java.lang.*;
  21. import java.io.*;
  22.  
  23. /* Name of the class has to be "Main" only if the class is public. */
  24. class Ideone
  25. {
  26. public static void main (String[] args) throws java.lang.Exception
  27. {
  28. // your code goes here
  29. }
  30. }
Success #stdin #stdout 0.09s 54692KB
stdin
Standard input is empty
stdout
Standard output is empty