sanjay kumar gupta

Greenhorn
+ Follow
since May 15, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sanjay kumar gupta

Thank you all
12 years ago
I have serached on Google but could't find exact concept of derefencing in java,I have few doubt about this concept please clear --

1-is java support derefencing?
2- is Derefencing and aliase is same word?
3- is I am correct if
A a1= new A();
and then later i try to use properties or function of a1

is this called derefencing?
or

if
A a1=new A();
a1= null;
or assigning null to reference is called derefencing?
12 years ago
No I am not using Apache POI(I can't use),I already tried this apostrophe in front of 300:00 but excel started showing as '300:00 ,Excel is not hiding apostrophe when I running export through the code ,when I am trying to do the same thing in excel it working good .please advice.

"You should also stop using the xls extension if this is the case." please explain what do you mean by this line.
13 years ago
Still not get any suggestion ,I looking forward for some reply. thanks a lot in advance.
13 years ago
Yes it is from Sun website, I just want to share this knowledge never think about credit ,but yes I will make sure next time

Jeff Verdegan wrote:

sanjay kumar gupta wrote:Most studies agree that pointers are one of the primary features that enable programmers to inject bugs into their code.

Given that structures are gone, and arrays and strings are objects, the need for pointers to these constructs goes away. Thus, Java has no pointer data types. Any task that would require arrays, structures, and pointers in C can be more easily and reliably performed by declaring objects and arrays of objects.

Instead of complex pointer manipulation on array pointers, you access arrays by their arithmetic indices. The Java run-time system checks all array indexing to ensure indices are within the bounds of the array.

You no longer have dangling pointers and trashing of memory because of incorrect pointers, because there are no pointers in Java.



This sounds like a quote from somewhere. If it is, please give proper credit to the source. If it is in fact your own thoughts in your own words, please accept my apologies and carry on.

13 years ago
Most studies agree that pointers are one of the primary features that enable programmers to inject bugs into their code.

Given that structures are gone, and arrays and strings are objects, the need for pointers to these constructs goes away. Thus, Java has no pointer data types. Any task that would require arrays, structures, and pointers in C can be more easily and reliably performed by declaring objects and arrays of objects.

Instead of complex pointer manipulation on array pointers, you access arrays by their arithmetic indices. The Java run-time system checks all array indexing to ensure indices are within the bounds of the array.

You no longer have dangling pointers and trashing of memory because of incorrect pointers, because there are no pointers in Java.
13 years ago
sorry Akhilesh ,but I have to go with approach only because this is not my personal requirement ,this is existing tools for this small issue we can't change whole thing.

Akhilesh Trivedi wrote:If you are looking for a variety of users, then put a generic/common/basic/typical thing.

13 years ago
no I am saying may be some of user do't know.

Akhilesh Trivedi wrote:Are you trying to say that you are giving excel format to a user who doesn't know to use excel? In that I would prefer to give him HTML/PDF/CSV.

13 years ago
yes this can be a way,but this is not good way to say something to do by user because we are as programmer we make program to reduce user's work and also may be user do't know about how excel works.it will create bad impression to user.
13 years ago

I have a requirement where we need to show use min to user on web and there is an utility by which user can download information in excel,

problem is if user have

date min used(min:sec)
1/12/2012 2:00
2/1/2012 300:00
when user export this information in excel then

date min used(min:sec)
1/12/2012 2:00
2/1/2012 300:00:00
issue is with excel auto formatting. please advice any solution.

code :
13 years ago
sure Matthew,
13 years ago
Please note I don't know your exact requirement so below code may be help to find your required solution:

(Full solution deleted)
13 years ago
I got Fix for this issue.extra char can be added in subject by using below code when we are setting subject :

mailNotificationHelper.setSubject((MimeUtility.encodeText(SubjectText, "ISO-8859-15", "Q")));
have get any solution for your problem ,please reply I am facing same issue and no solution on internet.
13 years ago
I have a problem with my java code sending email to users. There is some problem with the encoding of the email as When the email arrives to email account the subject line($subject) has encoding problems as has strange characters(?) added to the end of my subject text.

The email message content itself is fine just the subject line(?) I have searched all over but cant find,after using Unicode and content type as text/html mail body have no problem with special character
(ó) but same fix is not working for subject line.

I have a class that sends an email with javamail, with a text like
this one in subject :

"Estimado Iván Escobedo:


The problem is that when the mail arrives to its destination, it
arrives this way:

"Estimado Iv?n Escobedo:


All the á, é, í, ó, ú, etc special characters are replaced with "?".

What could be the problem and how to resolve it?

Thanks
Please advice