fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. String st="(1) A a, — al'-fah; of Hebrew origin; the first letter of the alphabet;"
  13. +"figurative only (from its use as a numeral) the first: — Alpha."
  14. +"Often used (usually ajn an, before a vowel) also in composition"
  15. +"(as a contraction from (427) (a]neu,)) in the sense of privation;"
  16. +"so in many words beginning with this letter; occasionally in the"
  17. +"sense of union (as a contraction of (260) (a[ma))."
  18. +"(2) ÆAarw>n, — ah-ar-ohn'; of Hebrew origin [Hebrew {175}"
  19. +"('Aharown)]; Aaron, the brother of Moses: — Aaron."
  20. +"(3) ÆAbaddw>n, — ab-ad-dohn'; of Hebrew origin [Hebrew {11}"
  21. +"('abaddown)]; a destroying angel: — Abaddon."
  22. +"(4) ajbarh>v, — ab-ar-ace'; from (1) (a) (as a negative particle) and (922)"
  23. +"(ba>rov); weightless, i.e. (figurative) not burdensome: — from being burdensome."
  24. +"(5) ÆAbba~, — ab-bah'; of Chaldee origin [Hebrew {2} ('ab (Chaldee))];";
  25. String[] parts=st.split("[\n|.]\\([0-9]{1,2}\\)");
  26. int i=1;
  27. for(String p: parts){
  28. System.out.println(i+":::"+p);
  29. i++;
  30. }
  31. }
  32. }
Success #stdin #stdout 0.1s 320320KB
stdin
Standard input is empty
stdout
1:::(1) A a, — al'-fah; of Hebrew origin; the first letter of the alphabet;figurative only (from its use as a numeral) the first: — Alpha.Often used (usually ajn an, before a vowel) also in composition(as a contraction from (427) (a]neu,)) in the sense of privation;so in many words beginning with this letter; occasionally in thesense of union (as a contraction of (260) (a[ma))
2::: ÆAarw>n, — ah-ar-ohn'; of Hebrew origin [Hebrew {175}('Aharown)]; Aaron, the brother of Moses: — Aaron
3::: ÆAbaddw>n, — ab-ad-dohn'; of Hebrew origin [Hebrew {11}('abaddown)]; a destroying angel: — Abaddon
4::: ajbarh>v, — ab-ar-ace'; from (1) (a) (as a negative particle) and (922)(ba>rov); weightless, i.e. (figurative) not burdensome: — from being burdensome
5::: ÆAbba~, — ab-bah'; of Chaldee origin [Hebrew {2} ('ab (Chaldee))];