Program

Program




jEdit - Program_07.java

File Edit Search Markers Folding View Utilities Macros Plugins Help

łńHS>^ SS 0 04-0 0 PJUUI tfU & ©

O Program_07.java (D:\StraznikTeXasu\UMCS\java\Prog1\)

[// TABLICE.

public class Program_07{ .

public static void main(String[ ] argumenty) { .

// typWskaźnikowy nazwaTablicy = { elementy }.

int[] tablicaOl = {1, 7, 32, 43}; // utworzenie tablicy wypełnionej.

int[] tablica02; // zmienna wskaźnikowa, wskaźnik do tablicy.

tablica02 = new int[3]; // utwórz tablicę o 4 elementach i zapisz wskaźn

// wypełnienie utworzonej tablicy:.

tablica02[0] = 2;.

tablica02[l] = 3;.

tablica02[2] = 4;.

int[] tablica03 = new int[4]; // deklaracja wskaźnika i utworzenie tab

// wypełnienie:.

tablica03[0] = tablica02[2];.

tablica03[l] = tablica01[0] + tablica03[0];.

tablica03[2] = tablica01[l] * tablica02[l];.

tablica03[3] = 11 - tablica02[0];.

// TABLICE DWUWYMIAROWE. chatr[][] tablica04 = {.

{'A', 'B', 'C'},.

{'!>', 'E', ' F' } .

int n = 2;.

char[][] tablicaOS = new char[n][3];. tablica05[0][O] = 'X';. tablica05[0][1] = 'Y';.

System.out.println(tablica05[0][O]);.

System.out.println("Dlugosc tablicy 1 = " + tablicaOl.length);.

System.out.println("Ilosc wierszy tablicy 4 = " + tablica04.length);. System, out.println(,rIlosc kolumn tablicy 4 = " + tablica04[0]. length);.

> •

}

ik.

licy w jednym.

A.

U_[►-

1,1 Ali_Input/output complete______Qava, nonę, Cp1250)----wBRiiaflb


Wyszukiwarka

Podobne podstrony:
Program jEdit - Program_10.jav«File Edit Search Markers Folding View Utilities Macros Plugins Help
Zadanie19 1] jEdit - Zadaniel9.java^ File Edit Search Markers Folding View Utilities Macros Plugins
17686 Zadanie21 File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0
Zadanie51B File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0 04-0
17686 Zadanie21 File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$ 0
80576 Zadanie51B File Edit Search Markers Folding View Utilities Macros Plugins Help □łńHS>^ ££$
Program jEdit - Program_09.java File Edit Search Markers Folding View Utilities Macros Plugins Help
62546 Program jEdit - Program_Q6.javą^ File Edit Search Markers Folding View Utilities Macros Plugi
Program File Edit Search Markers Folding View Utilities Macros Plugins Help fiS 0 04-0 0 : - tf

więcej podobnych podstron