Core Java Programming Question

Core Java Programming

This post is for student who study java and they need many programs in their exam and test so I am trying to make some java programs which help them to make their work easy 

Question 4: Write a program to find the following pattern
Input : Ashok Kumar Yadav
Output: A.K. Yadav

Question 12 : Write a program to calculate product of digit of a given page ?