fork(2) download
  1.  
  2. /**
  3.  *
  4.  * @author Damien Bell <SkyeShatter@gmail.com>
  5.  */
  6. import java.util.Scanner;
  7. class Jtutorial1 {
  8. public static void main(String args[]){
  9. Scanner input = new Scanner(System.in);
  10.  
  11. // Logic errors -- When your code works, but the thought that created them, was flawed.
  12. // Code errors -- Syntax, incorrect naming, invalid calls, calling from bad locations.
  13.  
  14. // I = P*R*T
  15. //int interest = P*R*T;
  16.  
  17. int i =0, j=0;
  18.  
  19. i = 2*6-2+18/9+3;
  20. j = 1+9-6+2*7/4;
  21.  
  22. int k= i*j;
  23.  
  24.  
  25. System.out.println(k);
  26.  
  27.  
  28. } //End main
  29. } //End class
  30.  
Success #stdin #stdout 0.06s 213888KB
stdin
Standard input is empty
stdout
105