How to refactor variable type in Eclipse?

前端 未结 3 1160
青春惊慌失措
青春惊慌失措 2020-12-09 07:17

I want to refactor code like this:

int x=4;
int y=x;
System.out.println(y);

How can i do this automatically in Eclipse so x\'s type promoti

3条回答
  •  旧时难觅i
    2020-12-09 07:59

    IntelliJ has this feature (refactor->type migration), but unfortunately, Eclipse doesn't have it yet. I hope Eclipse will add it soon.

提交回复
热议问题