Java Problem using While and for loops?

I have tried to do this but I dont seem to be doing it right. Could you guys help me solve this

Write a program that sums all the numbers from 1 to 15, using a while loop. Rewrite the same program using a for loop.

Could you please write out the programs completely. Thank you 10points
3 answers 3