Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2. public class Main {
  3.  
  4. public static void main(String[] args) {
  5. double bubble = 867.5309;
  6. double x = 10.01;
  7. double y = 8.0;
  8. Printer(x, y);
  9.  
  10.  
  11. public static void Printer(double x, double y) {
  12. int z = 5;
  13. System.out.println("x = " + x + " and y = " + y);
  14. System.out.println("x = " + x + " and y = " + bubble);
  15. System.out.println("The value from main is: " + bubble);
  16. System.out.println("z = " + z);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement