Skip to main content

Posts

Showing posts from February, 2020

The collections in Java - Part 1

Hello friends, Welcome back 🙂 In this article, I'm going to share about collections framework or simply collections in Java. I'll add collection's notes and articles in parts because its a large but important utility in Java development, so lets get start. The collections - Basics In this article, we'll just review the basics about collections. As the name suggest, collection framework is used to create collection of objects and that collection represents itself as a separate object. In the collection framework, Java provides several interfaces, classes i.e. implementation of interfaces and various common behaviors between those classes and interfaces. Prior to collections, in Java, Vectors, Arrays and Hashtables were used for grouping Java objects. Here in this article, I'm just giving list of interfaces and classes of the collections framework: Java provides two types of collections. One is list typed in which objects stored in ...

Import multiple db files from folder into mysql db

Hello friends, Welcome back In the previous article, we've seen how to export database by table files, not the entire db file. Now in this article, here we're going to see the sample code for importing multiple sql files into same db. This also has been achieved by using a simple shell script. In this script, applied a for loop on list of files in a directory and by using that file name, mysql's import command is executed. The code is simple, you'll learn in just few minutes. Linux shell script: Execute above code in linux terminal to import all files into the given db. Hope this would help you. Thanks.