This example displays the width of the range.
Range range = sheet.range("A1:E6"); int width = range.getWidth(); System.out.println(width);
Related information
Width property