Jump to content

toomaz109

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by toomaz109

  1. public class MyClass { public static void main (String[] args) { int x = 5; addOneTo(x); System.out.println(x); } static void addOneTo (int num) { //You have to pre increment to see the result after referencing x ++num; } }
×
×
  • Create New...