Posts

Showing posts from June, 2017

Core Java Minor Project Ideas

“ Java Project Ideas ” is one of the common question ask when you have to choose a topic for you final year or semester projects. at that time you begin to ask “ what topic should you choose for you project “. Here are the some project ideas - New Patient Registry Management System Restaurant Billing Management System Library Management System ATM Management System Bus Ticket Booking Management System Movie Ticket Booking Management System Attendance Management System Medical Store Billing Management System Text Editor Projects in Java [I don't consider this single ideas a project] Currency Converter Project in Java[I don't consider this single ideas a project] Distance Calculator using Google API Advanced Calculator Project in Java[I don't consider this single ideas a project] Time Conversion by Country Java Project[I don't consider this single ideas a project] IP Address Detector [I don't consider this single ideas a project] Employee...

Free Download Code::Blocks

Image
Code::Blocks is a free development environment for the C++ programming language. It supports 20 different compilers, including Microsoft Visual C++, C Tiny, Digital Mars, and Borland C ++. Plugins galore The program is fully configurable thanks to the numerous plugins and options . Features such as automatic formatting of code or even creating short games in the integrated development environment (IDE) can be accessed at any time by selecting the corresponding extension. Fast build process Code::Blocks gets rid of makefiles , making the build process much faster . If support for parallel compilation was added, the speed with which you can bake your binaries would be tremendous. Help is always at hand (in a PDF) What Code::Blocks offers is typical of any IDE worth its salt: tabs, line numbering, colored syntax, code auto completion, smart indentation, and so on. If you ever get stuck, just check out the PDF manual .

16 NetBeans Shortcut Keys for Code Editing

Image
Do you know that shortcuts help you accelerate your development productivity? Indeed, the more time you use keyboards, the higher efficiency you get. Therefore today I’m going to share with you the common shortcut keys which are designed for editing code in NetBeans IDE. NOTE: Standard shortcuts are not covered, such as Ctrl + Space (auto-complete), Ctrl + A (select all), Ctrl + Z (undo), and the like. Ctrl + E or Shift + Delete : deletes the current line. Ctrl + Delete: deletes the next word after the cursor. If it is a compound (i.e. using camel case like fileHandler), then only the first word is deleted. Ctrl + Backspace: deletes the previous word before the cursor. Alt + Shift + Up: Moves up the current line (or a selected block of code) by one line:   Alt + Shift + Down: Moves down the current line (or a selected block of code) by one line: Ctrl + Shift + Up: Copies and moves up the current line (or a selected block of code) by one line:   Ctrl + Shift ...

JDBC driver library download

In order for Java applications working with a database engine via Java Database Connectivity (JDBC) , an appropriate JDBC driver library is required to be available in the application’s classpath. A JDBC driver library consists of Java classes which implement low-level communication with the database engine. It talks with Java applications via JDBC API and usually bundled as a JAR or ZIP file.For reference, this article provides a summary of JDBC driver download for common databases including MySQL, SQL Server, Oracle, PostgreSQL, Apache Derby (Java DB) and SQLite. Click on a database name to go to download page of the appropriate JDBC driver library. Database Driver provider JAR file name Download size MySQL Oracle Corporation mysql-connector-java-3.0.17-ga-bin.jar 3.8 MB ~ 4.0 MB SQL Server Microsoft Corporation sqljdbc.jar, sqljdbc4.jar 2.3 MB ~ 4.2 MB Oracle Oracle Corporation jodbc5.jar, jodbc6.jar, … 1.2 MB ~ 4.2 MB PostgreSQL The PostgreSQL Global Development Group postgresql-9....

Connect to SQLite via JDBC

SQLite is a simple, small, fast, reliable, server-less, zero-configuration and no-installation SQL database library which is running in-process with the client application. Although there is no official JDBC driver library from www.sqlite.org , there is one provided by www.xerial.org – an XML Database Management System project. 1.    Download SQLite JDBC driver You can download the latest version of JDBC driver for SQLite here . The download is categorized by versions, so browse a directory for a specific version you want: 3.5.9, 3.6.16, 3.7.2, etc. As of this writing, the latest version is 3.7.2 which corresponds to the jar file sqlite-jdbc-3.7.2.jar.Beside Java class files, the jar file includes SQLite binaries for Windows, Linux and Mac (for both 32-bit and 64-bit).Place the sqlite-jdbc-VERSION.jar into your classpath. 2.    SQLite JDBC database connection URL The SQLite JDBC driver can load a SQLite database from file system or creates one in memory.Here is the syntax of database...

Connect to Apache Derby (Java DB) via JDBC

Apache Derby is a lightweight, portable database engine written purely in Java. Java DB is a just an Oracle’s distribution of Derby in their JDK.This article presents the steps to quickly get started with Derby, from downloading its JDBC driver to write code for making connections. 1.    Downloading Derby JDBC driver library Download the latest version of Derby here (as of this writing, the latest release is 10.9.1.0 ). The distribution includes the following pieces of software component: Component Jar files Embedded database engine and JDBC driver derby.jar Network client JDBC driver derbyclient.jar Network server derbynet.jar, derbyrun.jar Command line tools derbytools.jar Localization messages derbyLocale_xx_YY.jar If you are using JDK 1.7, then Derby is already included in JDK installation under the name Java DB in JDK_HOME\db directory. The jar files are located in JDK_HOME\db\lib directory.In both case, you have to place appropriate jar file to the classpath: derby.jar: f...

Connect to PostgreSQL database server via JDBC

This tutorial walks through process of connecting a Java application to a PostgreSQL database server from downloading JDBC driver to write code that makes the connection. Before begin, make sure you have a version of PostgreSQL database server installed either on your development computer or on a dedicated server. Code in this tutorial is tested with PostgreSQL 9.1. 1.    Download PostgreSQL JDBC driver You can obtain the latest version of JDBC driver for PostgreSQL here . Currently there are two versions: JDBC3 Postgresql Driver : for JDK 1.4 and JDK 1.5 JDBC4 Postgresql Driver : for JDK 1.6 and JDK 1.7 So let choose the one matches with your JDK version. The download is actually a jar file so you can put it directly into your application’s classpath. Name of jar files are postgresql-VERSION.jdbc3.jar and postgresql-VERSION.jdbc4.jar. 2.    JDBC database URL for PostgreSQL The syntax of database URL for PostgreSQL looks like the following forms: jdbc:postgresql: database jdbc:...

Connect to Oracle database via JDBC

Image
This article provides examples of how to establish database connection with an Oracle database server – the first step to have Java applications working with one of the most popular database systems. Suppose you already had a version of Oracle database installed, such as Oracle Database 11g Express Edition . 1.    Download JDBC driver library for Oracle database Click here to visit Oracle’s JDBC driver download page: Select the JDBC driver version that matches Oracle database engine installed on your computer. Here we select Oracle Database 11g Release 2 (11.2.0.3) which brings us to the jar download page: As you can see, there are several jar files which may cause confusion. However, the main jar file is ojdbc5.jar (for Java 5 or later) or ojdbc6.jar (for Java 6 or later). Here we select the version for Java 6. Remember to select Accept License Agreement at the top, and click on the link ojdbc6.jar to download. NOTE: Oracle requires users to have an Oracle account for downloading,...

Connect to Microsoft SQL Server via JDBC

This article describes how to get JDBC driver and write code for making database connection to Microsoft SQL Server from a Java client. Suppose you have a light weight version of SQL Server installed, such as Microsoft SQL Server 2012 Express . 1.    Download Microsoft JDBC driver Click here to download Microsoft JDBC Driver 4.0 for SQL Server which supports: SQL Server versions: 2005, 2008, 2008 R2, and 2012. JDK version: 5.0 and 6.0. Run the downloaded program sqljdbc_<version>_<language>.exe . It will extract the files into a specified directory (default is Microsoft JDBC Driver 4.0 for SQL Server ). You will find two jar files sqljdbc.jar (for JDBC 3.0) and sqljdbc4.jar (for JDBC 4.0), plus some .dll files and HTML help files.Place the sqljdbc.jar file under your application’s classpath if you are using JDK 5.0 or sqljdbc4.jar file if you are using JDK 6.0 or later. 2.    JDBC database URL for SQL Server The syntax of database URL for SQL Server is as follows: jd...

Connect to MySQL database via JDBC

Image
This article explains how to write Java code to connect to a MySQL database server, step by step.  If you have never written Java code to connect MySQL before, it’s worth reading this tutorial from the beginning. Download JDBC driver for MySQL First, in order to have Java program working with MySQL, we need a JDBC driver for MySQL. Browse this URL: http://dev.mysql.com/downloads/connector/j/ to download the latest version of the JDBC driver for MySQL called Connector/J. Click the Download button next to Platform Independent (Architecture Independent), ZIP Archive to download a zip archive. Extract the mysql-connector-java-5.1.21.zip file to a desired location on your computer. The distribution includes a binary JAR file, source code, documentation and license files. But only one file we need is the JAR file mysql-connector-java-5.1.21-bin.jar. Copy this file into your project and make it available in your program’s classpath. No need to load MySQL driver class explicitly The Connecto...

[JAVA Assignment] Write a program to allow user to enter 10 Integers and writes the smallest number

Hey Friends, main motive to write this post is to enhance your programming skills by practicing it. As this is one of  my assignment question.It will very helpful you to enhace your programming skills. In this question you will use Scanner methos to input data from uses, loops and conditional Statements. Here is the Code- import java.util.Scanner; class User1 { public static void main(String args[]) { int arr[]=new int[10]; int smallest=32768, temp; Scanner input=new Scanner(System.in); System.out.println("enter 10 integers"); for(int i=0;i<10;i++) { arr[i]=input.nextInt(); } for(int i=0;i<10;i++) { if(arr[i]<smallest) { temp=smallest; smallest=arr[i]; arr[i]=temp; } } System.out.print("smallest number="+smallest); } }   You can download source code with class file from here