📅  最后修改于: 2022-03-11 14:59:26.759000             🧑  作者: Mango
public class LinearArray{
public static void main(String [] args){
int [] b = {10, 20, 30, 40, 50, 60};
shiftLeft(b,4);
printArray(b); // This Should Print: { 40, 50, 0, 0, 0, 0 };
}
public static void shiftLeft(int [] source, int k){
for(int i=0,j=i+k;i