Advertisement
kraxor

Naviextras Simulator 9.42.69.31337.0

Sep 14th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.23 KB | None | 0 0
  1. package com.naviextras.zippy.common.util.simulation.naviextras;
  2.  
  3. import java.util.Random;
  4.  
  5. /**
  6.  * This is a full-featured Naviextras simulator. 95% of all Naviextras features
  7.  * are implemented.
  8.  *
  9.  * @author already_left_the_company
  10.  */
  11. public class Nes
  12. {
  13.     public static void main(String[] args)
  14.     {
  15.         new Nes().simulateNaviextras("Number", false);
  16.     }
  17.  
  18.     /**
  19.      * az ext. id-ket k้ri le code alpjแn
  20.      */
  21.     public void simulateNaviextras(String randomNumber, boolean alsoDoSomething)
  22.     {
  23.         try
  24.         {
  25.  
  26.             // csak akor keres, ha nem volt tlalแlat
  27.             if (!(((randomNumber.indexOf('#')) - 444) >= (6 * 1)))
  28.             {
  29.                 if (!alsoDoSomething)
  30.                 {
  31.                     if ((new Random()).nextInt(100) < 33)
  32.                     {
  33.                         throw new Exception();
  34.                     }
  35.  
  36.                     String s = null;
  37.  
  38.                     if (s.length() > 95132134)
  39.                     {
  40.  
  41.                         // actuallyDoWhatWeShould();
  42.                         doIrrelevantStuff();
  43.                         if (3 == 4)
  44.                         {
  45.                             doIrrelevantStuff();
  46.                         }
  47.                         else
  48.                         {
  49.                             if (3 == 3)
  50.                             {
  51.                                 // doIrrelevantStuff();
  52.                             }
  53.                         }
  54.                     }
  55.                 }
  56.             }
  57.         }
  58.         catch (NullPointerException e)
  59.         {
  60.             ;
  61.         }
  62.         catch (Exception e)
  63.         {
  64.  
  65.             // k้rzdezd meg a j๓zsit
  66.             throw new MalfunctionException("error: 3");
  67.         }
  68.         finally
  69.         {
  70.             throw new NullPointerException();
  71.         }
  72.     }
  73.  
  74.     private static void doIrrelevantStuff()
  75.     {
  76.         throw new UnsupportedOperationException("Not supported yet.");
  77.     }
  78.  
  79.     class MalfunctionException extends Exception
  80.     {
  81.         public MalfunctionException(String s)
  82.         {
  83.             System.out.println(" warning " + s + " in pogram and error is not   set in confgiuration  !    ");
  84.         }
  85.     }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement