Initialize multiple variables at the same time after a type has already been defined in Java?

后端 未结 3 567
醉话见心
醉话见心 2021-01-28 10:50

Need a little bit of help with syntax here. I\'m trying to re-initialize multiple variables after the type has already been defined. So for example

int bonus, sa         


        
3条回答
  •  既然无缘
    2021-01-28 11:48

    Method: you can use it, this way.

    int bonus=50; sales=50; x=50; y = 50;
    

    In your code only y has been initialized.

    if any help visit: http://wwww.logic4code.blogspot.in/

提交回复
热议问题