cours0708/workspace/G5a_exercices/fr/blankoworld/g5a/InverseArgs.java
2008-11-25 22:11:16 +01:00

28 lines
420 B
Java

package fr.blankoworld.g5a;
public class InverseArgs {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int longueur;
longueur = args.length - 1;
for ( int i=longueur; i >= 0 ; i-- )
{
System.out.print(args[i]);
if (i == 0)
{
System.out.println(".");
}
else
{
System.out.print(" ");
}
}
}
}