Skip to content

Tag: java

How to enable/disable subtitles in a VLCJ application

In the VLC media player, it is possible to disable subtitles. It is unclear how to do that programmatically using VLCJ. I have searched the Internet for information on how to do this, and could not find any information based on the current version of VLCJ. I did find some information, but the solutions shown …

Merging 2 regex that allow only English and Arabic characters

I have a string and I want to remove any other character such as (0..9!@#$%^&*()_., …) and keep only alphabetic characters. After looking up and doing some tests, I got 2 regexes formats: This should return “hello مرحبا ok”. But of course, this will return an empty string because we&#821…

How to skip multiple test cases mvn

Need flag to skip multiple test cases and not through pom. -Dtest=!abc.demo1IT and -Dtest=!*test Want to skip abc.demoIT and unit test cases using flag. How do I combine these 2? mvn -Dtest=[!abc.demo1IT |!*test] clean install does not seem to work. Referece from Skipping tests in some modules in Maven Answer…

ConcurrentModificationException thrown on for

problem of cant add element while iterating. i tried th emethod of creating another arraylist nd store element there and add them all in one time but it didnt work because you nedd the arraymist size to operate right. any help pls. Answer You’re doing the following: Obtain an iterator from some collecti…