source: winedb/src/utils/WineLocationConverter.java@ 9b6a069

Last change on this file since 9b6a069 was 9b6a069, checked in by dportnoy <devnull@…>, 13 years ago

Initial commit

  • Property mode set to 100644
File size: 417 bytes
RevLine 
[9b6a069]1package utils;
2
3public class WineLocationConverter {
4 /*
5 * #1: rack
6 * 1 for 6x18
7 * 2 for 8x18
8 * 3,4 for 10x19
9 *
10 * #2: vertical section
11 * #3: column
12 * #4: row in that column
13 */
14 public static void main(String[] args) {
15 int rack = 2;
16 int section = 3;
17 int column = 7;
18 int row = 1;
19
20 System.out.println((rack << 24) + (section << 16) + (column << 8) + row);
21 }
22}
Note: See TracBrowser for help on using the repository browser.