Is there a "Java for VB programmers" book

Is there a "Java for VB programmers" book

Post by Howard Kai » Tue, 30 Dec 2003 12:37:21


I have VS NET and was looking at some Java code for translation to VB, but
the benevolent MSFT did not include any Java Help, so I do not know what is
meant by a statement such as pause(i, j) or pause(i).

Also, the help I did find was not fully helpful, e.g., what does the
following mean in a while loop?

if (stopRequested){ return;}

I have Java books, but do know Java.

I guess that I need to get vjsharp book and "Java for V B prpgrammers" book.

Any recommendations?

--
http://www.yqcomputer.com/ ; See Howard Kaikow's web site.
 
 
 

Is there a "Java for VB programmers" book

Post by mikegreonl » Wed, 31 Dec 2003 09:01:05

Hi Howard,

| I have VS NET and was looking at some Java code for translation to VB, but
| the benevolent MSFT did not include any Java Help, so I do not know what
is
| meant by a statement such as pause(i, j) or pause(i).

pause(i, j) is calling a method called pause that takes two parameters i
and j.
pause(i) is calling a method called pause that takes one parameter i.
In Java (and many other languages) you can define a set of methods which
all have the same name but take different numbers and types of parameters.
Let's say you have a method called pause and you want to be able to call it
with 1 integer parameter or two integer parameters, you would define the
following methods:

class MyClass
{
void pause(int i){ //some code here;};
void pause(int i, int j){ //some code here;};
};

Depending on how you call the pause method, the compiler will determine the
correct method to call. For example:

MyClass c = new MyClass(); // Instantiate a MyClass object
c.pause(10, 20); // call pause(int i, int j)
c.pause(10); // call pause(int i)

| Also, the help I did find was not fully helpful, e.g., what does the
| following mean in a while loop?
|
| if (stopRequested){ return;}

If stopRequested is true, this line of code will exit out of the while
loop. The return keyword will return control to the block of code
immediately outside the block of code in which it was called.

| I guess that I need to get vjsharp book and "Java for V B prpgrammers"
book.

I'm sorry but I don't know of any Java for VB programmers, others may have
seen such a book.

Thanks,

Michael Green
Microsoft Developer Support

 
 
 

Is there a "Java for VB programmers" book

Post by Howard Kai » Thu, 01 Jan 2004 06:47:49

Thanx.

--
http://www.yqcomputer.com/ ; See Howard Kaikow's web site.


but
it
the