Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.naviextras.zippy.common.util.simulation.naviextras;
- import java.util.Random;
- /**
- * This is a full-featured Naviextras simulator. 95% of all Naviextras features
- * are implemented.
- *
- * @author already_left_the_company
- */
- public class Nes
- {
- public static void main(String[] args)
- {
- new Nes().simulateNaviextras("Number", false);
- }
- /**
- * az ext. id-ket k้ri le code alpjแn
- */
- public void simulateNaviextras(String randomNumber, boolean alsoDoSomething)
- {
- try
- {
- // csak akor keres, ha nem volt tlalแlat
- if (!(((randomNumber.indexOf('#')) - 444) >= (6 * 1)))
- {
- if (!alsoDoSomething)
- {
- if ((new Random()).nextInt(100) < 33)
- {
- throw new Exception();
- }
- String s = null;
- if (s.length() > 95132134)
- {
- // actuallyDoWhatWeShould();
- doIrrelevantStuff();
- if (3 == 4)
- {
- doIrrelevantStuff();
- }
- else
- {
- if (3 == 3)
- {
- // doIrrelevantStuff();
- }
- }
- }
- }
- }
- }
- catch (NullPointerException e)
- {
- ;
- }
- catch (Exception e)
- {
- // k้rzdezd meg a j๓zsit
- throw new MalfunctionException("error: 3");
- }
- finally
- {
- throw new NullPointerException();
- }
- }
- private static void doIrrelevantStuff()
- {
- throw new UnsupportedOperationException("Not supported yet.");
- }
- class MalfunctionException extends Exception
- {
- public MalfunctionException(String s)
- {
- System.out.println(" warning " + s + " in pogram and error is not set in confgiuration ! ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement