SHARE
TWEET

Example_to_test_JavaParser

a guest Feb 12th, 2016 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Example
  2.   extends Object {
  3.  
  4.   //Comments
  5.   //-----------------------------------------------------------------------
  6.  
  7.   /**
  8.    * JavaDoc comment
  9.    */
  10.  
  11.   public String [] array = {
  12.       "1", "2", "3",
  13.       "4", "5", "6",
  14.       "7", "8", "9"
  15.   };
  16.  
  17.   private int a = 10;
  18.  
  19.   private String s = "Hello " +
  20.       "World";
  21.  
  22.   public void m1() {
  23.     for (int i = 0;
  24.         i < 10;
  25.         i++) {
  26.      
  27.     }
  28.   }
  29.  
  30.   public boolean m2(
  31.       int a) {
  32.     if (a < 10
  33.         && a > 0) {
  34.       return true;
  35.     } else {
  36.       return false;
  37.     }
  38.   }
  39.  
  40.   public void foo() {
  41.     while (a < 10
  42.         && a > 0) {
  43.      
  44.     }
  45.   }
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top