I am trying to test this code but unfortunately I get Can't find a method to write property 'age' of type 'int' in a bean of type 'test.StudentsBean' error. But when I change age type to String and also its getter and setter methods it works well.
Can anybody tell how to solve this problem.

which IDE do you use?
Netbeans or Eclipse..?

@manaila
Can you show us your code?

@jalpesh_007
I'm using Netbeans

@subramanya.vl
I used this code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.