UUID.node() has the following syntax.
public long node()
In the following code shows how to use UUID.node() method.
/*from w ww . ja v a2s . c o m*/ 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.