HOW TO PRINT HINDI CHARACTERS USING JAVA

  Following is the simple program with which you can print the hindi language characters using JAVA programming language. package printhindi;public class Hindi {     public static void main(String args[]) {      char c;      for (c = 2309; c < 2360; c++            System.out.print(” ” + c); } }    Continue reading “HOW TO PRINT HINDI CHARACTERS USING JAVA”

ADD JARS TO ECLIPSE

In this post, we are going to how to add the jar files to the eclipse project. First thing that we need to achieve this is to download the jar file that we want to add/export into our eclipse project. After downloading the desired jar file, we need to create the eclipse project in whichContinue reading “ADD JARS TO ECLIPSE”

GROUP IN REGEX

In my last update on regular expressions i.e. regex, I mentioned that regex have the group thing which is used extensively by java people in order to enhance its productivity. So in this update, we are going to talk about the groups which are used in regular expressions. The concept of groups is quite simple.Continue reading “GROUP IN REGEX”

STORE ARRAY DATA IN HIVE INTERNAL TABLE

Array<Datatype> is considered to be the complex datatype in case of HIVE which is used to store the data into internal/external tables using the data present in the local files. It is customary to specify the collections’ behavior while creating the table itself. We need to pass the argument which specifies which character is usedContinue reading “STORE ARRAY DATA IN HIVE INTERNAL TABLE”

RECORD INSERTION IN MYSQL TABLE

We are going to insert the data into mysql table ‘sample’. We will use Java programming language for doing the same.   In case you missed how to connect your database with the JAVA programming language, you should refer this link below. https://milindjagre.wordpress.com/2014/04/25/mysql-database-connection-through-java/   Once you establish the connection with MySQL database, all you needContinue reading “RECORD INSERTION IN MYSQL TABLE”

MYSQL DATABASE CONNECTION THROUGH JAVA

MySQL can be connected with the help of JAVA programming language. For this we require a driver which will enable us to create a connection to connect to MySQL database. A connection object is created with the help of getConnection() method of DriverManager class. The standard syntax of this getConncetion() method contains one, two andContinue reading “MYSQL DATABASE CONNECTION THROUGH JAVA”

COMMAND LINE ARGUMENTS

  The concept that we are going to talk today is about printing i.e. accessing the elements or arguments that we enter on the command line in the runtime. There are plenty of ways to implement this thing. For naïve programmers, we can use the simple editor and then run the program on the commandContinue reading “COMMAND LINE ARGUMENTS”

The difference between float and double

Thank you. We all know float and double as the primitive datatypes of any programming language. But plenty of us still get confused regarding the basic meaning of these datatypes. In technical terms, float is known as the Single precision floating point datatype whereas double is considered to be double precision floating point datatype.  Continue reading “The difference between float and double”

EXTRACT DAY FROM THE GIVEN DATE

  The day of the week can be easily extracted from the date given to us. The logic behind this program is to create a calendar object and set the calendar entries as per your requirements. After that we use getWeekdays() method and pass the integer value of days of the week to get theContinue reading “EXTRACT DAY FROM THE GIVEN DATE”

Regular Expressions in JAVA

The regular expressions or regex as they are known  popularly are used for string handling purpose. If we want to compare the two strings, if we want to replace some of the characters in the string, if we want to extract specific pattern in a particular string, then we go for regex. This regex enablesContinue reading “Regular Expressions in JAVA”