Here you can find the source of invert(int numToInvert)
Parameter | Description |
---|---|
numToInvert | a parameter |
public static final int invert(int numToInvert)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . java 2s . c o m*/ * Inverts a number. * @param numToInvert * @return */ public static final int invert(int numToInvert) { return ~numToInvert + 1; } }