All pastes #164615 Raw Edit

Someone

public java v1 · immutable
·published 2006-09-08 20:14 UTC
rendered paste body
public class relais {        public static void main (String[] args) 	{// pub du démarage		        													System.out.println ("");	                System.out.println ("=====================");	                System.out.println ("==> [ C0m-Pil0t ] <==");			System.out.println ("==> [  By MOUS  ] <==");	                System.out.println ("=====================");	                if (args.length==0) // si aucun paramettre			{       			       System.out.println("\nC0m-Pil0t : opérande manquante");			       System.out.println("Pour en savoir davantage, faites: « ./java (prog) --help ».");			}				else 			{	                	if (args[0].equals("--help")) // si on tape " --help "				{					help();				}				else 				{					if (args[0].equals("on")) // si ont tape " on " en paramettre 0					{							on();					}						else						{							if (args[0].equals("off")){								off();						}									}			}			System.out.println("\nfin");	   }}	public static void help() 	{		System.out.println("Il faut mettre en premier le type de commande a faire : ");		System.out.println("on  : pour allumer le néon");		System.out.println("off : pour éteindre le néon\n");		System.out.println("ensuite le numéro du néon en question :");		System.out.println("et toussa toussa... ");	}	public static void on() 	{		System.out.println("ON");		/*if (args[1].equals("1"))		{			System.out.println("10000001");		}			else			{				if (args[1].equals("2"))				{					code="10000010";			        }			}	        */	}						public static void off() 	{		System.out.println("OFF");		System.out.println("10000000");	}}