Home » Java Integer remainderUnsigned() method with Examples

Java Integer remainderUnsigned() method with Examples

by Online Tutorials Library

Java Integer remainderUnsigned() Method

The remainderUnsigned() method is a method of Java Integer class which returns the unsigned remainder of dividing the first argument by the second argument where each argument and the result is interpreted as an unsigned value.

Syntax:

Following is the declaration of remainderUnsigned() method:

Parameter:

DataType Parameter Description Required/Optional
int dividend It is an int value which will be divided. Required
int divisor A value which will be doing the dividing process. Required

Returns:

The divideUnsigned() method returns the unsigned remainder of the first argument divided by the second argument.

Exceptions:

NA

Compatibility Version:

Java 1.8 and above

Example 1

Test it Now

Output:

Output Remainder: 7  

Example 2

Test it Now

Output:

Remainder is: 0  Remainder is: 2  

Example 3

Test it Now

Output:

Enter the Divident Value: 324734  Enter the Divisor value: 19  Remainder is: 5  

Example 4

Test it Now

Output:

Enter the user inputs to find the remainder (unsigned integer):   154  5  -5  The Results are:   4  154  

Next Topicreverse() Method

You may also like