class outer {
int a, b, c;
outer(int i, int j) {
a = i;
b = j;
}
void display() {
inner i = new inner();
i.add();
}
class inner {
void add() {
c = a + b;
System.out.println(c);
}
}
}
public class inclas {
public inclas() {
}
public static void main(String[] args) {
outer o = new outer(4, 6);
o.display();
}
}
6/26/10
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Hi folks, I got a chance to work with JSF, it was an interesting requirement. Its about a custom component which would be of more use to ...
-
Hi Folks, I would like to share my another POC task in JSF with you all. "Primefaces Dropdown with Pagination & Filter "...
-
We shall create temp table in mysql using the sql script CREATE TEMPORARY TABLE testraghu(name VARCHAR(50) , phone VARCHAR(50)) Let us se...
-
Hi all, i would like to share a simple example of storing haspmap in mysql db. In order to store object into your db, the field type must ...
No comments:
Post a Comment