Menu

Newbie: A concrete Use of JSE

Help
2005-10-13
2013-03-07
  • Luca Colombini

    Luca Colombini - 2005-10-13

    I would want to know if using the macro "when" of JSE is possible to write the following program java:

    public class test{

       public static void main(String[] args){
            when(args[0] != null)
                  System.out.println("My name is " + args[0]);
        }
    }

     
    • Tom White

      Tom White - 2005-10-14

      This should work - have you tried it? The 'when' macro is like an 'if' with no 'else'.

       
    • Luca Colombini

      Luca Colombini - 2005-10-17

      Ok, I tried again and now is allrigth (The real problem was the buildfile of ant: I don't understood how is work, and I had some problem with compilation). Now me and my tutor started the project based on JSE, I hope to be able to have your support during the development (I do not master still the syntax of the JSE)

      Thank
      Luca

       

Log in to post a comment.