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 HelloWorld
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12.  
  13. String[] list = {
  14. "my_purchases",
  15. "my_reservation_history",
  16. "my_reservations",
  17. "my_sales",
  18. "my_wallet",
  19. "notifications",
  20. "order_confirmation",
  21. "payment",
  22. "payment_methods",
  23. "pricing",
  24. "privacy",
  25. "privacy_policy",
  26. "profile_menu",
  27. "ratings",
  28. "register",
  29. "reviews",
  30. "search_listings",
  31. "search_listings_forms",
  32. "submit_listing",
  33. "submit_listing_forms",
  34. "terms_of_service",
  35. "transaction_history",
  36. "trust_verification",
  37. "unsubscribe",
  38. "user",
  39. "verify_email",
  40. "verify_shipping",
  41. "404",
  42. "account_menu",
  43. "auth",
  44. "base",
  45. "dashboard_base",
  46. "dashboard_menu",
  47. "fiveohthree",
  48. "footer",
  49. "header",
  50. "header_menu",
  51. "listings_menu",
  52. "main_searchbar",
  53. "primary_navbar"
  54. };
  55.  
  56. String[] checked = {
  57. "404",
  58. "account_menu",
  59. "auth",
  60. "base",
  61. "dashboard_base",
  62. "dashboard_menu",
  63. "fiveohthree",
  64. "footer",
  65. "header",
  66. "header_menu",
  67. "listings_menu",
  68. "verify_shipping",
  69. "verify_email",
  70. "user",
  71. "unsubscribe",
  72. "trust_verification",
  73. "terms_of_service"
  74. };
  75.  
  76.  
  77. ArrayList<String> ar = new ArrayList<String>();
  78.  
  79. for(int i = 0; i < list.length; i++)
  80. {
  81. if(!Arrays.asList(checked).contains(list[i]))
  82. ar.add(list[i]);
  83. }
  84. System.out.println(ar);
  85.  
  86. }
  87. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
[my_purchases, my_reservation_history, my_reservations, my_sales, my_wallet, notifications, order_confirmation, payment, payment_methods, pricing, privacy, privacy_policy, profile_menu, ratings, register, reviews, search_listings, search_listings_forms, submit_listing, submit_listing_forms, transaction_history, main_searchbar, primary_navbar]