Last change
on this file was 9b6a069, checked in by dportnoy <devnull@…>, 14 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
417 bytes
|
Rev | Line | |
---|
[9b6a069] | 1 | package utils;
|
---|
| 2 |
|
---|
| 3 | public 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.