File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programming Diversions and the fly likes solve this please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Reply locked New topic

solve this please

teja dharma
Ranch Hand

Joined: Feb 07, 2009
Posts: 51
In one of my recent interviews i appeared, they asked a question like this.
when you run" java filename n1 n2 n3 n4" here n1,n2 are integers. n3,n4 are floats.
you must get the output as result of (n1/n2) ,(n3/n4) .
please frame a programme which satisfies the above question.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
What was your response? What are your thoughts now that you've had time to think about it?
James Tharakan
Ranch Hand

Joined: Aug 29, 2008
Posts: 580

Why did you post the same question in SCJP also.
CrossPost not appreciated

Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
I agree. Here's the link:
subject: solve this please
It's not a secret anymore!