This is your resource to discuss support topics with your peers, and learn from each other.
How to click picture from camera in a java app
I recommend that you use the Search facility rather than just ask a question.
I could provide you link, to a KB article, but to practice, I would like you to search for it. "camera sample" would be a reasonable search term.