Ruby Arrays and Hashes

Similar Posts

  • Java Sets

    Java has two different types of sets, Unsorted and Sorted… even if Math Sets are technically unsorted. Unsorted Sets Unsorted sets in Java are not a class that can be defined. Therefore you need to use the HashSet and then use the polymorphic nature of the OOP to create the set. From here, you want…

  • Overview of Ruby

    Ruby is a high-level, interpreted programming language that was designed to make coding as enjoyable as possible. Created by Yukihiro Matsumoto in the mid-1990s, Ruby prioritizes readability, simplicity, and productivity. The language is dynamically typed, object-oriented, and often praised for its clean, expressive syntax, which resembles natural language. Ruby is particularly popular in web development,…

  • Java Stacks

    The Stack class is found in java.util and it extends the Vector Class. This means it can grow and shrink as needed, which is helpful for a Stack. As it extends a Vector, it is helpful to Parameterize the constructor. Just like the Stack that we’ve created, it has the same methods: push(), pop(), and…

  • Working with Maps in Go

    Working with a Map in Go is like Dictionaries in Python, or Maps in Java. A Map stores information as key/value pairs. This is a nice thing about data structures, they are often found in other languages. Defining the Map When you define one in Go, you need to define the variable as a type…