cours0708/workspace/G5a_exercices/fr/blankoworld/g5a/InverseArgs.java

28 lines
420 B
Java
Raw Normal View History

2008-11-25 21:11:16 +00:00
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(" ");
}
}
}
}