Win a copy of Head First Android this week in the Android forum!

Amit Sethi

Ranch Hand
+ Follow
since May 30, 2006
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 Sethi

Hi, guys...
Pls help me .


I have to copy a directory from cd rom to c drive , pls tell me the way of doing this, & if possible pls give explanation.


Thanks & Regards
Amit Sethi.
14 years ago
Q1. I want to make window media player in java, can any one please guide me the best way to play video & audio files in java, in window's application using swings.

(Is there any free code available which can help me to understand things )

Thanks and regards
Amit Sethi
15 years ago
Q This function is returning int value :

class Try {
int function() {
return 20;
}
public static void main(String[] args) {
Try t1 = new Try();
t1.function(); // function called here but no one is going to recieve the returned value. Why java don't care about the return value & if we not recieve returned value then where it goes? Please explain.
}
}
// no compile time error:

Thanks & regards
Amit Sethi.
15 years ago
please explain the statement for registering listener in init() method & why we are declaring refrence of A16 in MyMouseAdapter & MyMouseMotionAdapter.
& is there any good tutorial for adapter classes.


//page no. 664 complete refrence

import java.awt.*;
import java.applet.*;
import java.awt.event.*;

/* <applet code = "A16.class" width = 300 height = 300>
</applet>
*/


public class A16 extends Applet {

public void init() {
setBackground(Color.cyan);
addMouseListener(new MyMouseAdapter(this)); // this line is not clear
addMouseMotionListener(new MyMouseMotionAdapter(this));
}

}

class MyMouseAdapter extends MouseAdapter {

A1 a16;

public MyMouseAdapter(A16 a1) {
this.a16 = a16;
}

public void mouseClicked(MouseEvent me) {
a16.showStatus("mouse clicked");
}
}

class MyMouseMotionAdapter extends MouseMotionAdapter {

A16 a16;

public MyMouseMotionAdapter(A16 a16) {
this.a16 = a16;
}

public void mouseDragged(MouseEvent me) {
a16.showStatus("mouse Dragged");
}
}

Thanks & regards
Amit Sethi
15 years ago
please reply ranchers.



Regards
Amit Sethi
15 years ago
Hi, ranchers
I am an MCA final year student, i want to know which one of the two is better.
1. career in game programming (j2me)
2. career in web application (j2ee)

please specify the factor on which you are giving your views, & please give some details & relevant websites.


Thanks & Regards
Amit Sethi
15 years ago
friends i just want to start with "ejb" i have completed head first servelets & jsp .
so pls suggest me a beginer book for ejb.

Regards
Amit Sethi
=> can any one pls tell me a book for EJB, for beginer & for certification.
I need a book that is easy to read & understand.

pls share your experience.


Regards.
Amit Sethi.
=> can any one pls tell me a book for EJB, for beginer & for certification.
I need a book that is easy to read & understand.

pls share your experience.


Regards.
Amit Sethi.
Thanks Guys

I think => Head first servlets & jsp (Kathy Sierra, Bert Bates, Bryan Basham)
is good to start with.

I just want to confirm that is it understandable to a beginer without any teacher? Or any other book should i try.

Waiting for your reply.

Regards
Amit Sethi
15 years ago
JSP
=> can any one pls suggest me a good book of jsp for freasher .

thanks in advance.
Regards
Amit
15 years ago
JSP
Thanks a lot guys, now it is clear.

But can you pls help me in my IInd post(Working with sounds in java).

Regards.
Amit Sethi.
15 years ago
can any body pls give me a link to basic(step by step with explaination) sound tutorial in java ?

-> I have tried java documentation & java tutorial but they are not clear to me & searched the tutorial on Internet but i did'nt get a basic step by step tutorial of sounds in java , can any body pls give me a link to basic sound tutorial in java ?

Thanks in advance.

Regards
Amit Sethi.
15 years ago
class Pg325 {
public static void main(String[] args ) {

int[][] twoD = { {1,2,3} , {4,5,6} , {7,8,9} };

for(int x:twoD[2]); // how can a simple variable contain a reference compiling prefectly WHY ?)

for(int[] x : twoD[2]); //incompatible types WHY ? here x is a refrence to an array & twoD[2] contains a refrence:
}
}



pls explain me why compiler is behaving abnormally, what is the logic behind it ?

Regards
Amit Sethi
15 years ago
Thanks ankur,

But my friend i have just started jdbc & want to connect to MS-Access Database.
I need the full procedure from table creation,linking,driver asigning to retrival of data, every thing .


Actually I don't have any book for jdbc pls suggest me Best book or tutorial for this topic, sun's documentation & tutorial are going over my head.

Regards
Amit Sethi.