Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. private static ExcelVersion parseValidExcelVersions(int intVersion) {
  2.     switch (intVersion) {
  3.         case 9:
  4.             return EXCEL_2000;
  5.         case 10:
  6.             return EXCEL_2002;
  7.         case 11:
  8.             return EXCEL_2003;
  9.         case 12:
  10.             return EXCEL_2007;
  11.         default:
  12.             if (intVersion < 9) {
  13.                 return VERY_OLD_VERSION;
  14.             } else
  15.                 return NEW_VERSION;
  16.             }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement