Click here to Skip to main content
15,031,345 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Mini CCCs 144 Pin
OriginalGriff6-Nov-19 19:52
mveOriginalGriff6-Nov-19 19:52 
GeneralRe: Mini CCCs 144 - Done Pin
Tim Deveaux7-Nov-19 5:40
MemberTim Deveaux7-Nov-19 5:40 
NewsI was sent this, and... Pin
OriginalGriff6-Nov-19 10:27
mveOriginalGriff6-Nov-19 10:27 
GeneralRe: I was sent this, and... PinPopular
j snooze6-Nov-19 11:22
Memberj snooze6-Nov-19 11:22 
GeneralRe: I was sent this, and... Pin
OriginalGriff6-Nov-19 11:47
mveOriginalGriff6-Nov-19 11:47 
GeneralRe: I was sent this, and... Pin
Rajesh R Subramanian6-Nov-19 18:08
professionalRajesh R Subramanian6-Nov-19 18:08 
GeneralRe: I was sent this, and... Pin
S Houghtelin7-Nov-19 1:44
professionalS Houghtelin7-Nov-19 1:44 
RantJava - ughhh Pin
ZurdoDev6-Nov-19 9:03
professionalZurdoDev6-Nov-19 9:03 
I have to do some updates to a Java program (I normally do .Net). I need to multiply 2 numbers. One is a BigDecimal and the other is a hard-coded integer.

In .Net I can easily do
decimal a = 2;
decimal b = a * 3;  // b has 6

Simple. Easy.

In Java? Nope, I have to use methods because it can't multiply a BigDecimal and an Int directly using *. So, I have to do this
BigDecimal a = new BigDecimal(2);
BigDecimal b = a.multiply(new BigDecimal(3));


D'Oh! | :doh:

[Edit]
Ahh! It's even worse. You can't even multiply 2 bigdecimals using *. D'Oh! | :doh:
[/Edit]

[Edit2]
You can't even add them. You have to use a method to add 2 bigdecimals. D'Oh! | :doh:
[/Edit2]
Social Media - A platform that makes it easier for the crazies to find each other.

Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.

GeneralRe: Java - ughhh Pin
Slacker0076-Nov-19 9:26
professionalSlacker0076-Nov-19 9:26 
GeneralRe: Java - ughhh Pin
ZurdoDev6-Nov-19 9:35
professionalZurdoDev6-Nov-19 9:35 
GeneralRe: Java - ughhh Pin
Slacker0076-Nov-19 9:41
professionalSlacker0076-Nov-19 9:41 
AnswerRe: Java - ughhh Pin
Dan Neely7-Nov-19 3:28
MemberDan Neely7-Nov-19 3:28 
GeneralRe: Java - ughhh Pin
jackbrownii7-Nov-19 6:46
professionaljackbrownii7-Nov-19 6:46 
GeneralRe: Java - ughhh Pin
Marc Clifton6-Nov-19 9:29
mvaMarc Clifton6-Nov-19 9:29 
GeneralRe: Java - ughhh Pin
Member 79891226-Nov-19 22:33
MemberMember 79891226-Nov-19 22:33 
GeneralRe: Java - ughhh Pin
Marc Clifton7-Nov-19 2:25
mvaMarc Clifton7-Nov-19 2:25 
GeneralRe: Java - ughhh Pin
Member 79891227-Nov-19 21:36
MemberMember 79891227-Nov-19 21:36 
GeneralRe: Java - ughhh Pin
Dave Kreskowiak6-Nov-19 9:42
mveDave Kreskowiak6-Nov-19 9:42 
GeneralRe: Java - ughhh Pin
Super Lloyd6-Nov-19 11:55
MemberSuper Lloyd6-Nov-19 11:55 
GeneralRe: Java - ughhh Pin
CPallini6-Nov-19 20:57
mveCPallini6-Nov-19 20:57 
GeneralRe: Java - ughhh Pin
Member 79891226-Nov-19 22:34
MemberMember 79891226-Nov-19 22:34 
GeneralRe: Java - ughhh Pin
Rajesh R Subramanian7-Nov-19 1:17
professionalRajesh R Subramanian7-Nov-19 1:17 
GeneralRe: Java - ughhh Pin
CPallini7-Nov-19 1:42
mveCPallini7-Nov-19 1:42 
GeneralRe: Java - ughhh Pin
Rajesh R Subramanian7-Nov-19 13:51
professionalRajesh R Subramanian7-Nov-19 13:51 
GeneralJust Curious Pin
Kevin Marois6-Nov-19 6:19
professionalKevin Marois6-Nov-19 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.