Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ryan Anderson   on Aug 21 In Java Category.

  
Question Answered By: Adalwin Fischer   on Aug 21

I do not think that what you are telling will work. Have you tried
putting that to code and testing it out?

Instead this works -

int x, y;
x = -7;
y = 5;
int z = -1 * (0 - x - y);

Isn't it?

Share: 

 

This Question has 11 more answer(s). View Complete Question Thread

 


Tagged: