Shape Tower (3)

xiaoxiao2021-03-06  19

A programming problem (see the post of C is discovered): Write a method, passing into 2 INT type, returning one of the large values, no if the IF statement and <,> and other Boolean operators. Java implementation as follows : int Max (int A, int b) {int [] buf = new int tent [2];

BUF [0] = a;

BUF [1] = B;

INT Z = a-b;

z >>> = 31;

Return BUF [z];

}

I don't know how, I feel that I have a great help to I have a lot of help.

转载请注明原文地址:https://www.9cbs.com/read-77155.html

New Post(0)