Word Counter in Java

Here is a Java program I made in Java that counts the number of words and number of lines in of an inputted String. Check this out! import java.util.Scanner; public class PrintPerWord { public static void main(String[] args) { Scanner read = new Scanner(System.in); String myString = new String(); System.out.print("Please enter any string: "); myString = read.nextLine(); int line = 0, let = 0, size

Saving the Objects in Java

Our programs reside on Hard Disk. Every program is brought into Main memory(RAM) for execution. Variables, Objects are runtime entity which means they are saved in RAM. Once you run the Program, variables, objects come into existence but once we close our program they are deleted from the Main Memory. In order to save the state(instance variable) of objects they must be saved on Secondary Memory(Hard Disk). Following are steps for serializing(saving) the objects.

Connecting MySQL Database using Visual Basic.NET

In this tutorial I am going to show you the process on how to connect Basic using MySQL Database. To begin with, you need to download the MySQL Connector/NET first from this link http://dev.mysql.com/downloads/connector/odbc/. After downloading, you need to install it so the connector will now available to use under the Reference. Now let’s begin creating our application using VB.NET (I’m Using VB Express 2008 edition). And this time you need to add a reference using MySQL Connector.

Easy Way to implement A Dynamic Clock in Java using Threads

Introduction: In this Tutorial, creation of clock which updates every second is explained. Here we create an Application for clock. It shows Hour, minutes and seconds which updates every second. Main Idea: The Dynamic clock can be created using Java's Timer thread but here we will see how to use our own thread and accomplish the task. This tutorial can clear any doubts you have in Java Threads.

Variables

Variable plays an important role in computer programming. Every programming language are using variable to store temporary data and holds it until it is freed. By using a variable, you can use it one or more times even up to millionth times if it is necessary. Consider if you want to display the following string a millionth times: "The quick brown fox jumps over the lazy dog." You would need to type it 44 times over and over again to print the same result.

Student Database

This source code will perform basic operation of a database like record navigation, add new, and delete record. Imports System.Data.OleDb Public Class frmStudentDB Private Sub frmStudentDB_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'UniversityDataSet.Student' table. You can move, or remove it, as needed. Me

Unit Converter

Unit Converter is a program that allows the user to change or turn from one state or condition to another called convert by entering thier password in the login form the user is ready to use it. This program is user friendly and it is easy to use even the user is his/her first time to use it, there is no such thing that can make the user difficult to use just select what unit do you want to