• Saves Valuable Time
  • Trusted Accuracy for 14 Years
  • 15-Day Money-Back Guarantee

Java Equivalent to VB Properties

Java does not have properties, so you must use get/set methods instead:

VB Java
Public Property IntProperty() As Integer
        Return intField
    End Get
    Set(ByVal value As Integer)
        intField = value
    End Set
End Property
public int getIntProperty()
    return intField;
public void setIntProperty(int value)
    intField = value;

Use VB to Java Converter to convert from VB to Java.     

Additional resource: VB.NET and Java Equivalents

Copyright © 1997 – 2018 Tangible Software Solutions Inc.