Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / December 2003

Tip: Looking for answers? Try searching our database.

Is there a "Java for VB programmers" book

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Howard Kaikow - 29 Dec 2003 03:37 GMT
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?

Signature

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

Michael Green - 30 Dec 2003 00:01 GMT
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
Howard Kaikow - 30 Dec 2003 21:47 GMT
Thanx.

Signature

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

> Hi Howard,
>
[quoted text clipped - 44 lines]
> Michael Green
> Microsoft Developer Support

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.