Remove whitespace from a string and join it [closed]

1

I have a string of a Logical Expression

Ex:

((T ∨ F → T) ∧ (T → F)) → (∼F → T)

I need to remove the whitespace from the string and put them together as a result:

((T∨F→T)∧(T→F))→(∼F→T)

How can I do this in Java? I tried to use replaceAll("\s",""); but I was not successful.

    
asked by anonymous 07.03.2018 / 02:16

0 answers