Tangible Software Solutions

The Most Trusted Name in Source Code Conversion

  • Trusted for over 12 Years
  • Saves Valuable Time
  • Accurate and Reliable
  • Responsive Support

VB Equivalent to Java For Loops

Java for loops are potentially far more complex than VB For loops.  For this reason many Java for loops need to be converted to VB Do While loops.  Only simple Java for loops having a single initializer and a single iterator are converted to VB For loops.

For example, the following Java code:
for (int i = 9, j = 1; i > 0 && j < 9; i--, j++)
{
    ...
}

converts to the following VB code:
Dim i As Integer = 9
Dim j As Integer = 1
Do While i > 0 AndAlso j < 9
    ....
    i -= 1
    j += 1
Loop

If you need to convert from Java to VB and you are depending on the results being reliable and accurate, then you will want to have Java to VB Converter, the best Java to VB converter, at your fingertips.

Copyright © 1997 - 2017 Tangible Software Solutions Inc.