Multiplication with a power of 2 | JAVA Code for Multiplication with a power of 2 ; Driver program to test above function
import java . util . * ; class GFG { static long multiply ( long x , long n ) { return x << n ; } public static void main ( String [ ] args ) { long x = 70 , n = 2 ; System . out . println ( multiply ( x , n ) ) ; } }