Write a program to print the specified series in Java with the while loop: 3 6 12 24 48 96 …. up to n terms

Enter image description here

Mgdmgdkhdmgkyyeoyhfbdhdjdjdjdjdjk GG mgdhfjydhxlhfsfJvsngzmhhffkuchlxlydluxmhxmhxjtsjtd vxdtjsnfzngsistjzjgzidyoyxmhtjtjtjtjtjt