Java UUID.node()

Syntax

UUID.node() has the following syntax.

public long node()

Example

In the following code shows how to use UUID.node() method.


/*from ww  w. j a v a  2 s . com*/

import java.util.UUID;

public class Main {
   public static void main(String[] args) {
      // creating UUID      
      UUID uid = UUID.randomUUID();     
        
      // checking node value
      System.out.println("Node value is: "+uid.node());    
   }    
}

The code above generates the following result.