• Tidak ada hasil yang ditemukan

Useful data types

N/A
N/A
Protected

Academic year: 2024

Membagikan "Useful data types"

Copied!
17
0
0

Teks penuh

(1)

USEFUL DATA

TYPES

(2)

STRING

• A sequence of characters.

• It’s actually from java.lang.String. It’s a Java class.

• A string is immutable.

(3)
(4)
(5)

ARRAY

Store fixed size sequential data (must have the same type)

Default value for a slot depends on its data type.

(6)
(7)

ARRAY MAY NEED “IMPORT”

(8)

SET

• Collection of non-duplicated data.

• They have to have the same data type.

• By default, set is immutable.

• Set is not ordered.

So its member does not have index.

(9)
(10)
(11)

MAP

• A collection of (key, value) pairs.

• A key is unique.

• you can choose between mutable/immutable map.

(12)
(13)
(14)

TUPLE

Collection of values.

Can contain different data type.

Tuple is immutable!

Each touple can only contain upto 22 data.

Position in a tuple starts from 1.

Data in a map is actually a tuple.

(15)
(16)

OPTION TYPE

Normally used as a return type

For example: return an answer or None

(17)

Referensi

Dokumen terkait

The integer abstract data type group consists of four abstract data types used to reserve memory to store whole numbers : byte , short , int , and long , as described in

From the data processing the model can select what information that must include in the user interface, and predict the type of tourist, between the explorer (need

Jenis nilai yang disimpan oleh identifier didefinisikan oleh special java keyword dikenal sebagai tipe data sederhana (primitive data type)..  Dalam pemrograman Java identifier

To each Range data type (CategoryRange, CountRange,QuantityRange and TimeRange), add an alternate encoding where each of the elements of the range will have an explicit property

Runtime objects representing the data model and the persistent store must be cre- ated before the managed object context can be created because it needs to refer to both of them..

37 Figure 30: Result of principal component analysis Clustering and Classification In the case of a classification, the process depends on the data type.. If the learning form is

If a screening unit has more than one microscope of same type running in parallel, where data moved to the same outgoing directory and one would still know from which microscope the

Example: Iris data § We show how the attributes, petal length, petal width, and species type can be converted to a multidimensional array – First, we discretized the petal width and