28 lines
420 B
Java
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(" ");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|