Answers for "netbeans use other class to store values in variables from other calss"

1

how to operate on values from different classes in java

class A {
int a = 10;
}
public class B{
public static void main (String args[]){
A a = new A();
System.out.println("I live in A " + a.a);
}
Posted by: Guest on July-11-2020

Code answers related to "netbeans use other class to store values in variables from other calss"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language