Пример

public static void main(String[] args){
switch ( args.length ){
case 0:
System.out.println("Нет параметров"); //$NON-NLS-1$
case 1:
System.out.println("Только один параметр: args[0]"); //$NON-NLS-1$
default :
System.out.println("Параметры: "); //$NON-NLS-1$
for ( int i = 0, n = args.length; i < n; i ++){
System.out.println(args[i]);
}
}
}

Решение
Вставьте оператор break.

public static void main(String[] args){
switch ( args.length ){
case 0:
System.out.println("Нет параметров"); //$NON-NLS-1$
break ;
case 1:
System.out.println("Только один параметр: args[0]"); //$NON-NLS-1$
break ;
default :
System.out.println("Параметры: "); //$NON-NLS-1$
for ( int i = 0, n = args.length; i < n; i ++){
System.out.println(args[i]);
}
break ;
}
}