class ex {
int a, b;
ex(int i, int j) {
a = i;
b = j;
}
final int add() {
return a + b;
}
int add(int c) {
c = a + b;
return c;
}
}
public class finuse1 {
public finuse1() {
}
public static void main(String[] args) {
ex e = new ex(5, 5);
int t;
t = e.add();
System.out.println(t);
t = e.add(t);
System.out.println(t);
}
}
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