Swap two variables using temp

Java Easy 5 views
Back to Questions
Next Increment and return Easy N

Problem Description

Task: swap two integers a and b and return as array [b,a].

Input Format

Java method

Output Format

Return value

Constraints

Use temp variable.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next