The For-Each Loop in Java

Similar Posts

  • Conditions in Java

    You will find conditions in Java familiar if you are used to using boolean conditions in C/C++. However, noticed that I said boolean conditions. That is because Java wants boolean conditions, those that generate a true or false answer, instead of the C/C++ conditions which actually look for an integer value. Notice the following below…

  • Importing a Package

    Importing a package allows me to import a class, or set of classes into my application that I can use. (These will be outside of the package that I create for my own project.) These packages act like libraries in other languages where a lot of work might be done for you already, and you…

  • Java’s Vector Class

    The Vector, in Java, effectively implements a dynamic array like in other languages. This is because Java’s array is static in size, like the one’s found in C/C++. The vector can use an index to identify a specific element, however, it can grow and shrink based upon the size needs of the vector. Since early…

  • Java Arrays

    Arrays in Java are similar to C/C++ arrays, however there are some special unique things about them which make Java Arrays a little easier to work with in my opinion. Like in C/C++ you can have single dimensional or multidimensional arrays. Advantages to Arrays Like a C/C++ array, the array in Java is a contiguous…

  • Class Methods in Java

    In object oriented programming, you consider the object which you are programming about, for example, a car. You then consider the attributes about the object, for example, the make, model, color, year built, etc. You also have consider the operations of the object. i.e. What can it do? A car for example could turn on…