String

How to Limit Characters to Display in a String using PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to limit characters to display in a string using PHP. In development, there are instance that the length of the string to be displayed is extremely long and destroys our layout. So, in order to solve this, we need to limit the characters to be displayed.

How to Convert String to Sentence Case using PHP

Submitted by alpha_luna on
In this tutorial, we are going to learn how to Convert String to Sentence Case using PHP. We all know, in a sentence form, the first letter is capitalized and the following word is lowercased but with the proper nouns and other words must be generally in capitalized word. We are going to convert the string to sentence case. For example, the user comment to a webpage, it will display the string into the web page but you cannot, sure enough, the text from the user is properly formatted or not.

Count SubString in a Large String in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of countSubStrings.java. 2.

Try and Catch Statements

Submitted by GeePee on
Introduction: This page will teach you about the Try and Catch statements in Java. What is a Try and Catch statement? A Try and Catch statement is a very handy statement which allows the program to handle errors and warnings thrown by the scripts. Each Try and Catch statement contains the block of script to handle, a single or multiple exception(s) followed by block(s) of script which are executed if that specific exception is thrown by the handled script.

Return Keyword

Submitted by GeePee on
Introduction: Welcome! This tutorial page will teach you about the "Return" keyword in Java. What is a 'keyword'? A keyword is a word which already has a set/pre-defined action within Java. For example; public is a keyword which allows other classes to access the public variable or function/method. So, what does the "Return" do? Return is used to send a value back from a method or function to the place where it was called. The type of value to return depends on the type of method the return keyword is encased in.

Arrays

Submitted by GeePee on
Introduction: Welcome, this page will teach you about Arrays within Java. What is an Array? An array is a variable which holds more than one value, in effect, it's a list of values attached to a variable name. When are Arrays Used? Arrays are very useful for holding lists of values for certain scripts. For example; holding the id of each button that has been activated within a game.

Variables

Submitted by GeePee on
Introduction: Hello! This tutorial will teach you about variables. What are variables? Variables are pieces of data which are used to store more data. Every variable has a type, a name and a value; if the variable does not have a value then its value is 'null' or 'nothing'. What types can variables be? There are a few different types of variable, the most common ones being: - String - Double - Int (Integer) - Long - Boolean A string is a piece of text containing letters, numbers and symbols.