SwetaSweta Singh

+ Follow
since Dec 12, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by SwetaSweta Singh

Thank you very much for the explaination.

Thread t=Thread.currentThread();

Is there any alternate easy way to write the same.
How does it differ from
Thread t=new Thread();
11 years ago
I request somebody to explain this. I am finding difficulty in understanding this.
Please explain each part of the statement.

Thread t=Thread.currentThread();

What does each part of the statement stand for especially Thread t? Why is it required.?

What does Thread.currentThread(); stand for and why is it required.

Thanks in advancee
11 years ago

That is the best option but actually I wanted to do this through a program due to some specific reasons.

Please let me know if this is possible in Java.
12 years ago
Let me explain a bit for clarity and to arrive at a feasible solution.
I use microsoft outlook. I receive 500 emails daily in microsoft outlook from the exchange server. I want the emails received in microsoft outlook to be automatically redirected to a database i.e Ms access or MY SQL or oracle or SQL Server.
How can I do this? Which of the databases will be the best? Will I need any third party software to do this or this can be done directly without using any third party software. Thank in advance to all responding.

Here is why I want to do it.
I want to send the email to the db and then I want those mails to be fetched by 10 users through an applicaton(built in Java) within a LAN. Each user will fetch a mail one by one so the the same mail does not get locked by two or more users. After working on the fetched mail the user will then release the mail after updating the other corresponding fields for the mail in the db. I cannot fetch mails one by one in outlook and I will not know if the same mail has been read by the other users and the appropriate action taken.

An example:
Let us for example have 3 mails received in Inbox. The mails will have three fields like Name, Contact No and Message. The mails will be moved to the DB with all these fields and the data against each field. Let us now call each mail a record once it has moved to the DB. Three more fields like "category", "subcategory" and "response" to be sent to the mail sender will be added to each record in the DB to each mail(record) received. The front end of the application will show each message of the fetched record and the category and subcategory fields for corresponding fetched record will also be chosen through a drop down menu by the person who has fetched that email. The chosen option from the drop down through the front end will update the field of the db for that particular record which has been fetched. In short, the drop down will categorise the mail and then sub categorise. As per categorisation the "response" field will get automatically updated will already stored formats of messages. Now the contact number of the user and the corresponding responses will be shown and exported to an excel sheet.

How can I do all this through a java application?
12 years ago
Thanks to all who have been to help to me.

Can someone help me understand the below program and what each specified line of code does line by line/step by step? If you can't explain line by line then atleast please explain the meanings of the lines marked in bold. Though it is a simple program but I am finding some difficulty in understanding some of the lines of the code.

Here is the complete program.

class Test{
int a;
Test(int i)
Test incrByTen(){
Test temp=new Test(a+10);
return temp;
class RetOb{
public static void main(String args[])
{ Test ob1= new Test(2);
Test ob2;
ob2 = ob1.incrByTen();
System.out.println("ob1.a:"+ ob1.a);
System.out.println("ob2.a:"+ ob2.a);
System.out.println("ob2.a after second increase:" + ob2.a);

12 years ago
I am new to java.
I am unable to understand how methods return objects? Request some to explain with an example and with the outputs.

Thanks a tonne to the respondent and a detailed explaination will be much appreciated.

[ December 12, 2008: Message edited by: SwetaSweta Singh ]
12 years ago