code: private String getSupportedResolutions()
      {
          final StringBuilder builder = new StringBuilder(Constant.HUNDRED);
          int i = 0;
          for (final DisplayMode display : dev.getDisplayModes())
          {
              final StringBuilder widthSpace = new StringBuilder();
              final int width = display.getWidth();
              if (width < Constant.THOUSAND)
              {
                  widthSpace.append(Constant.SPACE);
              }
              final StringBuilder heightSpace = new StringBuilder();
              final int height = display.getHeight();
              if (height < Constant.THOUSAND)
              {
                  heightSpace.append(System.lineSeparator());
              }
              final StringBuilder freqSpace = new StringBuilder();
              final int freq = display.getRefreshRate();
              if (freq < Constant.HUNDRED)
              {
                  freqSpace.append(Constant.SPACE);
              }
              builder.append("Supported display mode:")
                     .append(System.lineSeparator())
                     .append('[')
                     .append(widthSpace)
                     .append(width)
                     .append(Constant.STAR)
                     .append(heightSpace)
                     .append(height)
                     .append(Constant.STAR)
                     .append(display.getBitDepth())
                     .append(Constant.SPACE)
                     .append(Constant.AT)
                     .append(freqSpace)
                     .append(freq)
                     .append(Constant.UNIT_RATE)
                     .append(']')
                     .append(Constant.SPACE);
              i++;
              final int linesPerDisplay = 5;
              if (i % linesPerDisplay == 0)
              {
                  builder.append(System.lineSeparator());
              }
          }
          return builder.toString();
      }
docs: Get the supported resolution information.
  
  @return The supported resolutions.