Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
}
 
PREVIOUS NEXT
Tagged: #operate #values #classes #java
ADD COMMENT
Topic
Name
4+2 =