static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}


static void foo(String message){
  System.out.println("Message: " + message);
}

//somewhere in another function foo("Hello World!");



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8


public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

bar
a = 5


public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

bar
a = 5
b = 10



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

bar
a = 5
b = 10
c = 8



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

bar
a = 5
b = 10
c = 8



public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8


public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8


public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

foo
output = 10
longMessage = true


public class Parameters{
  public static void main(String[] args){
    int x = 5;
    int y = 10;
    int z = 8;
    bar(x, y, z);
    foo(y, true);
  }

static void foo(int output, boolean longMessage){ if(longMessage){ System.out.println("The value was " + output); }else{ System.out.println("Val: " + output); } }
static void bar(int a, int b, int c){ System.out.println(a + ", " + b + ", " + c); } }

Variables

main
x = 5
y = 10
z = 8

foo
output = 10
longMessage = true