Hi, i am new to java.I was having a two java files inside same package name.
"first file"
public class Send
{
static int a=1;
static int b=1;
public static void main(String args[])
{
if(a==b)
{
Get.getit = true;
}
}
}
"second file"
public class Get
{
static boolean getit=false;
String a = "hai";
{
if(getit)
{
System.out.println(a);
}
}
}
How can i pass the value from send.java to get.java.