Farakh khan

Ranch Hand
+ Follow
since Mar 22, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
6
Received in last 30 days
0
Total given
52
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Farakh khan

you are right. thanks from the bottom of my heart
2 years ago
I changed as you directed but nothing changed.

Is do{}while loop creating problem?

2 years ago

Tim Cooke wrote:No. An empty array is not null, it's an array.



When I recode it as follow:


Then whole class is not running and it throws following exception:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET http://mydomianName.com/servlet/pNews?start_date=29-06-2015&end_date=29-06-2015&subject=Testing&bcategory=1000.

Reason: Error reading from remote server

2 years ago

Tim Cooke wrote:But an empty array is not null. Therefore the condition is true.



How the empty array is NOT NULL? I conceive empty mean array == null. Is that not right?
2 years ago
if(vua !=null || vua.length>0){

In my view its saying if array is not null or its length is greater than 0 then do this. That's mean its ignoring NULL and if there is a value in the array then its running this block of code

2 years ago

Tim Cooke wrote:OK, so consider when 'vua' is an empty array. Is this condition true or false?


false
2 years ago
Let me post my full code:

2 years ago
Hello,

Here is my code:



Please advise

Thanks in anticipation
2 years ago
Thanks for focusing my attention towards nio API. Superior solution exist in its own API


Problem is fixed. Thanks all
2 years ago
Here how I am calling newBufferedWriter:

2 years ago
Hello,

Mycode:


This throws following Exception:

why file is not created?

Best regards
2 years ago
Today I ran this code on our production server and seen its writing only validSentAddresses.txt because either its sent or not then my code is writing "to" variable in the file that is email address that we don't know this will be sent or not.

Please advise how I modify my code to must throw sendFailException to write validSent, validUnsent and validNotSent emails

2 years ago
I am working in java since 1996 and still assuming I am learning. Its really a jest of computer science. In my era there was structure programming and OOP was looking very news and modern but now am seeing AOP (Aspect Oriented Programming). I love that java producers not only working to update their existing modules but always providing cutting edge new ideas as well.
2 years ago
Thanks from the bottom of my heart. I am really learning everyday. Coderanch is my best and favorite forum
2 years ago
I changed the method as following. Its working fine and appending records instead of overwriting
but throws the following exception:
2 years ago