Variables

Variables They allow you to store data of different types. There are two phases of a variable: Declaration – here we define the type and variable name Initialization – giving…

data types

In Java we distinguish many types of data that can be stored in both the number and was floating, characters, strings, and Boolean type. Java is a strict type checking, that is, each object must have a specific type.

(więcej…)

Comments

Comments are an important part of larger programs. In this framework, we can place the summaries written by our function. Thanks to them easy to find in the case of larger projects, but also when other people can not understand our code can reach for our description.

(więcej…)

Classes and Objects

Classes and Objects
A class is an essential element of any application written in Java. Java program is a collection of classes. The definition of each class is placed in a separate file, which is the file must have the same name as the class and have the extension java.

(więcej…)

Cookies

Cookies

It is a method of storing small amounts of data on a computer viewer page (eg. The information about the first and last name or user name on this service). Cookies set by the service are available only for him and are set for some time.
Cookies are transmitted via HTTP headers.

(więcej…)

Upload File

Often there is also a need to transfer a file to the server, for example by adding a photo to the gallery. The file is transferred using the form field type “file”. Please note that the opening tag form must find a parameter ENCTYPE = “multipart / form-data” and the form must be sent using the POST method.

(więcej…)

Forms

Forms

If you have to give some data (eg. To be added to the database), then the only way is to download them from the standard HTML form. In most programming languages ​​use additional libraries to access the data sent from the form. The PHP has been simplified.

(więcej…)

The range of variables

The range of variables

When you use the functions and classes there is a problem range of variables. This problem applies to most programming languages. Variables are usually available only in the range in which they are declared. For a range understand range master (piece of code that does not belong to any function or class), classes and functions.

Example

(więcej…)

Close Menu