home *** CD-ROM | disk | FTP | other *** search
/ Chip Special: HTML & Java / Chip-Special_1997-01_HTML-a-Java.bin / javasdk / sdk-java.exe / SDKJava.cab / Samples / native_raw / java / JFoo.java next >
Encoding:
Java Source  |  1996-10-10  |  534 b   |  33 lines

  1.  
  2. /*******************************************************************************
  3.  
  4.     JFoo
  5.  
  6.     class which is manipulated by JMain-called natively-implemented
  7.     methods.
  8.  
  9. */
  10. public class JFoo
  11. {
  12.     int    m_iVal ;
  13.  
  14.     JFoo()
  15.     {
  16.         System.out.println("JFoo() constructor without a parameter") ;
  17.         m_iVal = 3 ;
  18.     }
  19.  
  20.     JFoo(int iVal)
  21.     {
  22.         System.out.println("JFoo() constructor with a parameter") ;
  23.         m_iVal = iVal ;
  24.     }
  25.  
  26.     static void StaticMethod(long lVal)
  27.     {
  28.         System.out.println("StaticMethod(" + lVal + ")") ;
  29.     }
  30. }
  31.  
  32.  
  33.