Loading

Tutorials

  • Submitted by: 
    Today, we are going to cover how to find a square root in Java using the Math.sqrt method. Math.sqrt is a pre-defined Java method useful for programs such as this. import java.util.Scanner ; //scanner class is needed for user input public class squareroot { public static void main ( String [ ] args ) { Scanner input = new Scanner ( System . in ) ; //creates new scanner for user input double n...
  • Submitted by: 
    PHP cal_from_jd() The cal_from_jd() function converts the specified Julian day into a date of the specified calendar. Syntax of this function: cal_from_jd(jd,calendar) jd - A number (a Julian day count). (required) calendar - specifies the calendar to use. (required) The following calendar values can be used: CAL_GREGORIAN CAL_JULIAN CAL_JEWISH CAL_FRENCH Example It shows the basic use of this...
  • Submitted by: 
    PHP Forms In this tutorial we are going to learn about $_GET , $_POST , and $_REQUEST . Nowadays, PHP is one of the most popular means of processing HTML forms. To read the data submitted by a form, using PHP, use one of three special arrays: $_GET , $_POST or $_REQUEST . The first two contain the data submitted via their respective protocols. The third, $_REQUEST contains the data from both. The...
  • Submitted by: 
    Good day! In this tutorial, we are going to learn about animation-timing-function . What is animation-timing-function? animation-timing-function property specifies the speed curve of the animation. The speed curve defines the amount of time an animation uses to change from one set of CSS styles to another. Syntax of this property: animation-timing-function: linear | ease | ease-in | ease-out |...
  • Submitted by: 
    This is a tutorial that will teach you how to create a form shaker in vb.net. 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 . 2. Next, add two Buttons named Button1 for Left-Right shake and Button2 for Up-Down...
  • Submitted by: 
    Today, I will teach you how to create a program that displays the Windows User Properties in VB.NET. It will have Windows user properties like Username, Guest User, System, Anonymous, Authentication, Impersonation Level, Authentication Type, Groups, Owner Value, User Value, and Token Size. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by...
  • Submitted by: 
    The following is the most basic example of a Java program. You need the Java Development Kit installed in order to compile source code you write. If you don't have JDK installed on your computer, go here and click the link for your operating system for directions on how to install it. The following code contains many comments. Anything after two slashes // is ignored by the compiler. Programmers...
  • Submitted by: 
    The following is a basic Java GUI program allowing a user to input the lengths of a triangle's sides to find out if it is a right triangle or not. Open notepad or any text editor, and paste in the following code: import javax.swing.* ; //required for GUI components import java.awt.* ; //required for use of the container import java.awt.event.* ; //contains the ActionListener interface to handle...
  • Submitted by: 
    Introduction: This tutorial is the eighth in my Java Network Programming using KryoNet series, or third in creating a chat client and server system, in which we are going to be handling sending and receiving messages. Previous: In the previous tutorial we created a client handler for our server to keep track of the connected clients. The System: We are going to give the user a GUI to interact...
  • Submitted by: 
    Introduction: This tutorial is the ninth in my Java Network Programming using KryoNet series, or fourth in creating a chat client and server system, in which we are going to be handling disconnected clients. Previous: In the previous tutorial we created a way to receive and send messages through a new Packet2Message class to and from our server/client. The System: We are going to give the user a...

Pages