How to interchange assignment of values in Java in one line of code?

前端 未结 0 732
我在风中等你
我在风中等你 2020-11-21 15:16

Say I have the following variables:

int x = 1;
int y = 2;
//some calculations follow(x and y stay the same init values) that somehow require you to interchang         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题