This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @brief This function removes the blank spaces from a | |
string that are at the beginning and end of it. | |
* | |
* @details The string is traversed from the beginning | |
* until the first character is found, which | |
* will be set as the trimmed string beginning. | |
* Thereafter, the same is done from the end of | |
* the string until the last character is found, | |
* which will be set as the trimmed string end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Dimension; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.IllegalComponentStateException; | |
import java.awt.Rectangle; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.Optional; | |
import javax.swing.JButton; | |
import javax.swing.JDialog; |