Amit Tyagi

Ranch Hand
+ Follow
since Oct 18, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amit Tyagi


Hi,
thank you all guys.
I have started my journey.
thanks
Amit
23 years ago
Hi,
I am a new born fish in the servlets.
Could any body tell me about the basics of servlets.
How to run my first prog.? What are the free resources available on net?
What other things are required to apart from JDK1.3?
What are the things we have to know before starting this?
I am just loosing my first US job offer because of servlets.
I don't understand how can they expect a man to be perfect in all the fields?
Any way friends
I need your help....
Amit
23 years ago
Hi All,
I am looking for junior /intermediate level position in US or UK in the field of Java application development.
I am an engineer and a Sun certified professional, working in Kuwait for last two years. I have excellent expression skills along with excellent grasping capabilities. I am consistently maintaining an upward track record. I am a highly goal oriented person, proactive with leadership qualities.
I am presently working with a Company having interest in multi fields. I joined this company as a Design Engineer and soon was transferred to the Computer department. Right after that, I started learning Java and other related tools.
I have developed a few useful programs for the Engineering and Drafting dept., which helped in giving my company an upper hand. I am also familiar with networking, HTML and XML.
I have an ability to sustain myself in a highly competitive market. I am also working as a free lancer mostly doing the Java applets.
I have thorough understanding of OOP concepts. I am well familiar with all basic packages.
CV on request....
Thanks
Amit Tyagi
mail me @ amittyagi_@hotmail.com
call me @ (965)98 452 67
Please also note that,I will be needing H1B visa to work in US.
23 years ago
Hi,
I think fee for SCJP is 7000.00 in India.
bye
Hi guys..
Plz suggest me for the following......
I want to avoid the additional blank lines at the bottom of the file. My input is coming from some other prog.
The lines are of two types.
One which are coming in beteen the data and second one are the additional lines at the end of file.
it is like this...
start of file...
1. 2 b/u400x200x5x6 5 2.35
2. 2 b/u400x200x5x6 5 2.35
3.
4. 2 b/u400x200x5x6 5 2.35
5. 2 b/u400x200x5x6 5 2.35
6.
7.
8.
9.
10.
up to here....
so in above I want to tokenize all numeric values like in first line.. I want 2 400 200 5 6 5 2.35 and so on.
I want to be able to read the line 3, but not 6 7 8 9.
Please suggest about this?
Is there any method by which I can tokenize only the numeric values.
Thanks
Amit
23 years ago
Thanks guys..
Plz suggest me for the following......
I want to avoid the additional blank lines at the bottom of the file. My input is coming from some other prog.
The lines are of two types.
One which are coming in beteen the data and second one are the additional lines at the end of file.
it is like this...
start of file...
1. 2 b/u400x200x5x6 5 2.35
2. 2 b/u400x200x5x6 5 2.35
3.
4. 2 b/u400x200x5x6 5 2.35
5. 2 b/u400x200x5x6 5 2.35
6.
7.
8.
9.
10.
up to here....
so in above I want to tokenize all numeric values like in first line.. I want 2 400 200 5 6 5 2.35 and so on.
I want to be able to read the line 3, but not 6 7 8 9.
Please suggest about this?
Is there any method by which I can tokenize only the numeric values.
Thanks
Amit
23 years ago
Hi,
I am making a app. where input will be coming from some other prog.
My qtn. is how to avoid the blank lines which are there at last.?
I am using readLine method of dataInput Stream.
I have made a loop which will read all line untill it encounters null.... but this way it is also reading blank lines at the end and then throwing nullpointerexception.
Could some body help me about this?
thanks
Amit
23 years ago
Dear Mr.Dave,
I am a civil engineer working in Kuwait. I have a sun certification for java-2. I am working as a free lancer since last one year purely in the field of Java. I have knowledge of C as well of C++ up to some extent.
Further , I am also familier with a lot of technical and non -technical software packages.
Now, I am looking for the opportunity in the US.
Kinly please let me know, if you would like to know the more details about my activities.
Please contact me at amittyagi_@hotmail.com for any further clarification.
Regards
Amit Tyagi
23 years ago
Hi Sudha,
I just my passed my ScJP. i will be attending int. soon.

Please send your doc to me also.
email== amittyagi_@hotmail.com

Thanks in advance
Amit
23 years ago
Hi,
I think Aparna's is write.
You are here just overridding the run() method and calling it as you would have called any normal overridden method.
start() method is neccessary to create the resources....
Thanks Aparna.....

See these type of questions well before sitting for the exam...
All the best to you all..
Amit Tyagi
Hi Mapraputa,
Thanks for advise.
I am not giving the actual exam questions.
These were the questions which I practised before taking the exam. and I think after doing these type of qtn's person can understand the real exam's qtns well.
hope you have understood my point..
Amit
hi prasanthi,
Why don't you try this code and see your self...
Bye

Amit
Hi Guys,
Thank you . ..Thank you very much....
you all should practice threads for at least these ways plus some other combination
1>
class a1 extends Thread
{
public static void main(String args[])
{
a1 a =new a1();
Thread a11 = new Thread(a);
Thread a12 = new Thread(a);
a11.run();
a12.run();
}
int x,y;
synchronized int method1()
{
x =x+method2();
return x;
}
synchronized int method2()
{
y =y+method1();
return y;
}
public void run()
{
method1();
method2();
System.out.println(x+""+y);
}
}
what will be the result?
answer.......... stack overflow

2 >class a1 extends Thread
{
public static void main(String args[])
{
a1 a =new a1();
Thread a11 = new Thread(a);
Thread a12 = new Thread(a);
a11.run();
a12.run();
}
int x=1,y=1;
synchronized void method1()
{
x =x+1;
y=y+1;
}
public void run()
{
for(int i =0 ; i<5;i++)
{
method1();
System.out.println(x+""+y);
}
}
}
What will be the pattern of values of x & y
Can you predict it?
or 2 2...3 3.... 4 4 ...
or 2 3 ..3 4.... 4 5..

answer... Test and see........

bye everybody Thanks Shalini

Amit
Hi,
I have just cleared my SCJp-2. Now I am plannig to do the java script.
Unfortunatly i don;t have any idea about this.
I want some information about how should I start learning it?
What should be the starting point?
Any good books and wen materials......
thanks in advance
Amit tyagi
Hi. Every body...

Before appearing for the exam ,, you all should test your knowledge here...
http://www.absolutejava.com/articles/test-your-java-knowledge.html
see this also.... http://www.absolutejava.com/articles/java-tidbits.html
Amit