Use this formula:
result = (12 - i) % 7 + 1
More Related Contents:
- How to write a function returns first which is not null, otherwise null [closed]
- Java – call void function that print my name
- How to return 2 values from a Java method?
- Purpose of a constructor in Java?
- Nested functions in Java
- functional interface that takes nothing and returns nothing [duplicate]
- functional interface that takes nothing and returns nothing [duplicate]
- How can I create a Java method that accepts a variable number of arguments?
- Passing function as a parameter in java
- What is the equivalent of Regex-replace-with-function-evaluation in Java 7?
- Writing a function inside the main method – Java
- Array of function pointers in Java [duplicate]
- which programming language I should use between java and ruby for creating Android and iPhone app [closed]
- What is the difference between Java Garbage collection and C++ object destruction? [closed]
- Random shuffling of an array
- How do you make a deep copy of an object?
- JRBeanCollectionDataSource: How to show data from the java.util.List from JavaBean?
- Why are local variables thread safe in Java
- Classpath does not work under linux
- Spring RestTemplate GET with parameters
- JSON – Iterate through JSONArray
- calling setters from a constructor
- Java Static Initialization Order [duplicate]
- Scanner only reads first word instead of line
- Can I use @Requestparam annotation for a Post request?
- JAXB and property ordering
- Attaching additional javadoc in Intellij IDEA
- How to update xml files in java
- How do I use StringUtils in Java?
- Provide an iterator over the contents of two lists simultaneously?