The purpose of this tutorial is to present the basic elements needed for mobile Java applications (MIDlets) development. The notions described will be sufficient to build a simple application J2ME HelloWorld application.
Tutorial Java – #6 Classes and objects
Classes represent the basic principles of object-oriented programming. Classes are abstract concepts, stories, blueprints, describing: characteristics, attributes of an object; these represent what the object knows, what it is; object methods; these represent what the object knows to do, its behavior; Based on classes, the programmer can define something concrete, objects. Thus, by instantiating the […]
Tutorial Java 6 – #5 Flow control statements
In this post we can see how to implement in Java, the basic flow control structures / statements: decision-making structures: if – then, if – then – else, switch; structures for loop blocks: do-while, while – do, enhanced – for; loop control instructions: break, continue; Using control structures we can write programs for which the […]
Tutorial Java 6 – #4.3 Matrixes and Multidimensional Arrays
In this post we will see what are and how to define multidimensional arrays. The most common multidimensional array is the matrix – a two dimension array. Despite the fact in our mind a two-dimension array is like a table, a matrix is in Java an array of arrays, like in this image (a two-dimension […]
Tutorial Java 6 – #4 Arrays
In this topic we will see how we define and process arrays data structures in Java. An array is a particular form of Java object that is used to store a homogeneous list of elements (each element of the vector has the same type as vector type – the base type). The number of elements […]
Tutorial Java – # 4.1 How to add a new element to a Java array
In this post we see what is the solution to the problem of adding a new element to an existing array. As we saw in the Java Tutorial 6 – #4 Arrays, arrays are objects which manage a homogeneous and compact list of items. Because the list of elements is a compact memory area in […]
Tutorial Java 6 – #4.2 How to copy values of an array into another array
In this post are described the methods used to copy one array values into another array. Do not forget that arrays are objects in Java ( Java Tutorial 6 – #4 Arrys ) which means that the array variable that manage the collection of values is a reference, a pointer, which contains the address of […]
How to encrypt / decrypt with AES from Bouncy Castle API in J2ME applications
In this post we will see how to use the AES (Advanced Encryption Standard) or Rijndael algorithm implementation from the Bouncy Castle API for J2ME platform. The example will use the AES lightweight engine to encrypt and decrypt a file managed by a J2ME (Midlet) application. The Bouncy Castle Crypto API for Java provides a […]
Tutorial Java 6 – #2.1 How to write or generate JavaDoc comments
In software programming it is important to document the source code, because: you will have a clear picture of complex Java projects with many classes or modules; you will be able, later, to understand what was done so that you can modify, add or delete it. For Java applications, documentation is usually supplied in HTML […]
Tutorial Java 6 – #2.2 How to generate JavaDoc in Eclipse or NetBeans
Java source code documentation is represented by JavaDoc projects, which are a collection of HTML pages describing the classes and methods in the code. To generate Javadoc documentation you need a tool from the JDK, javadoc.exe , and comments in the source code written according to strict rules ( ). Because it is more efficient to […]
Tutorial Java 6 – #3 How to define primitive data types variables
In this Java 6 tutorial we will see which are the primitive data types, how to define variables, which are variables default values and what names we can give to these variables. In Java there are two types of variables: primitive objects or references
Tutorial Java – Contents
This Java tutorial covers all important Java 6 and 7 topics and allows a new programmer to learn the concepts, the know-how and the syntax elements of Java programming language. Also the tutorial highlights important topics for the SCJP certification exam.
Tutorial Java 6 – #2 Basic concepts
In this post we will see what are the basic rules, the components and the structure of Java programs. Based on what we have learned in Tutorial Java – #1 Prerequisites, it is supposed that you know that:
How to make a Line Chart in Flex with static data
The following example shows how you can create a LineChart in Flex by using static data from an array. The chart is created in MXML without any ActionScript code. The example shows you how you can create a simple animated chart without knowing ActionScript (with ActionScript you can create more dynamic and interactive charts, but […]
Tutorial Java 6 – #1 Prerequisites
This series of tutorials, beginning with this post, aims to synthesize elements of Java 1.6 for: learning object-oriented programming (OOP) in Java 1.6; learning for Sun Certified Java Programmer certification for Java 6 – SCJP; to become a better programmer.
How to set environment variables in Windows 7 for Java
Environmental variables are used by the operating system to save settings (default values, locations of resources) to be used by Windows or by processes launched by users.There are two types of environmental variables: user variables that are specific to a particular Windows user account; system variables are always visible, regardless of the used user account.
How to create a trajectory movement based animation (Motion Guide) in Flash CS4
In this example it is presented an animation that uses Classic Motion Tween and Motion Guide Flash CS4 effects to move an object on the screen after a predetermined path, eg a bouncing ball on the screen.Something like this:
How to convert .flac files to .wav and burn them on an audio CD
FLAC (Free Lossless Audio Codec) it is an lossless audio format similar to MP3, but the audio is compressed with FLAC without any loss in quality. In opposition, MP3 is a lossy audio format.
Tutorial Excel 2003 – Bara de stare
Bara de stare, descrisă în figura 1, este utilizată pentru a indica utilizatorului activarea anumitor funcţii ale tastaturii sau pentru a afişa informaţii temporare cu privire la prelucrarea datelor.
Tutorial Excel 2003 – Bara de instrumente pentru formatare
Prelucrarea datelor din registrul de lucru nu se rezumă doar la a aplica diverse funcţii şi formule care să conducă la rezultatele finale. Din cauza numărului mare de date incluse în foia de lucru, utilizatorul este nevoit să evidenţieze anumite zone de date astfel încât să faciliteze citirea şi înţelegerea ulterioară a acestora. Aplicaţia Excel […]
