Tutorials

How to get a SubString of a String in Java

Submitted by donbermoy on
This is a tutorial in which we are going to create a program that gets substring of a string in java. We all know that a substring is a part of a sentence or a string. Java String class provides substring method with some overloaded parameter. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of subString.java. 2. Import java.lang package because in this library, substring class is there.

How to Generate a Random Number in Java

Submitted by donbermoy on
In this tutorial, we will going to create a program that generates a random number using Java. We will just use the Math.random() function which returns a random number between 0.0 and 1.0 Now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of randomNumber.java. 2. Import javax.swing package.

Checking an Internet Connection in C#

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that can determine if your are connected in the internet or not using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. Name your program internet csharp. 2. Next, add only one Button named Button1 and labeled it as "Check Internet Connection".

Text Editor in Visual Basic

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a basic text editor in Visual Basic. Design: The design for this program is; Button, button1, Save the document. Button, button2, Open a document. Textbox, textbox1, Contain the document text. Imports: The only thing we need to import is System.IO which allows us to access files from the computers FileSystem...

How to get the extension of a file using Java

Submitted by donbermoy on
Today, I will teach you how to create a program that get the extension of a file using java. For example if we input a text file of .txt file extension then the output will be .txt. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of extensionFile.java. 2. Import java.io package.