fork(1) 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 test = "[)>061PKDU 127 161/3R4C22PDUW 30 016\0D20110714STU8X195955";
  13. if(test.contains("16D"))
  14. System.out.println(test + " contains ");
  15. else
  16. System.out.println(test + " NOT contains ");
  17. test = "[)>061PKDU 127 161/3R4C22PDUW 30 016D20110714STU8X195955";
  18. if(test.contains("16D"))
  19. System.out.println(test + " contains ");
  20. else
  21. System.out.println(test + " NOT contains ");
  22. }
  23. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
[)>061PKDU 127 161/3R4C22PDUW 30 016D20110714STU8X195955 NOT contains 
[)>061PKDU 127 161/3R4C22PDUW 30 016D20110714STU8X195955 contains