1   package com.puppycrawl.tools.checkstyle.checks.coding.finallocalvariable;
2   
3   public class InputFinalLocalVariableNativeMethods
4   {
5       public native String nativeFoo(int a, int b);    
6       private native double average(int n1, int n2);
7   
8        static {
9            System.loadLibrary("foo");
10       }        
11  
12       public void print () {
13           String str = nativeFoo(1, 4);
14           System.identityHashCode(str);
15       }
16  
17       public static void main(final String[] args) {
18           (new InputFinalLocalVariableNativeMethods()).print();
19           System.identityHashCode("In Java, the average is " +
20               new InputFinalLocalVariableNativeMethods().average(3, 2));
21           return;
22       }
23  }