wiley_pastebin

Lesson 5 output 1

Mar 15th, 2019
2,212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. public class InteractionDemo {
  2.  public void squared(int x){
  3.   System.out.println(x*x);
  4.  }
  5.  
  6.  public void doCalculations(){
  7.   //do 3 squared plus 4 squared
  8.   squared(3);
  9.   squared(4);
  10.   //??
  11.  } 
  12. }
Advertisement
Add Comment
Please, Sign In to add comment