battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 

 java finally is defer on swift

Go down 
Moti Barski


Posts : 246
Join date : 2011-08-02

PostSubject: java finally is defer on swift   Mon Nov 19, 2018 1:35 pm

   public static String enStar(String word) {
      Boolean fin = false;

      String result = "";
      for (int i = 0; i < word.length() + 2; i++) {
         result += "*";
      try {
         return result;
      finally {
         // this code line runs always before the return, the same as defer in the
         // swift  programming language
         System.out.println("why is this running twice ?!");

see comments in the function above


MB over and out _______________________     
Back to top Go down
View user profile
java finally is defer on swift
Back to top 
Page 1 of 1
 Similar topics
» Verify command when used with Java,JUNIT and Eclipse
» JAVA tunnel Based UAE Solution Available in Just $149 @ VoIP
» LocalFileDetector (uploading files) - InternetExplorer Driver (Java platform)
» How to test single page application (java) with selenium
» Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: