Java Garage

     

This ability could come in handy if, say, you had some software product you were licensing per processor. You could use this method to help ensure user compliance:

Runtime.getRuntime().availableProcessors(); //returns an int. //In my case, 1.

Read 1984 again.

Категории