🗊Презентация Arrays Loops. Java Core

Нажмите для полного просмотра!
Arrays Loops. Java Core, слайд №1Arrays Loops. Java Core, слайд №2Arrays Loops. Java Core, слайд №3Arrays Loops. Java Core, слайд №4Arrays Loops. Java Core, слайд №5Arrays Loops. Java Core, слайд №6Arrays Loops. Java Core, слайд №7Arrays Loops. Java Core, слайд №8Arrays Loops. Java Core, слайд №9Arrays Loops. Java Core, слайд №10Arrays Loops. Java Core, слайд №11Arrays Loops. Java Core, слайд №12Arrays Loops. Java Core, слайд №13Arrays Loops. Java Core, слайд №14Arrays Loops. Java Core, слайд №15Arrays Loops. Java Core, слайд №16Arrays Loops. Java Core, слайд №17Arrays Loops. Java Core, слайд №18

Вы можете ознакомиться и скачать презентацию на тему Arrays Loops. Java Core. Доклад-сообщение содержит 18 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





Arrays
Loops
Java Core
Описание слайда:
Arrays Loops Java Core

Слайд 2





Agenda
Arrays
While 
For 
Break, continue
Search item in the array
Sorting
Practical tasks
Описание слайда:
Agenda Arrays While For Break, continue Search item in the array Sorting Practical tasks

Слайд 3





Array
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed.
String dayWeek[]= new String[7];
String[] month;
month = new String[12];
Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the preceding illustration, numbering begins with 0.
dayWeek[0] = “Monday”;
month[11] = “December”;
Описание слайда:
Array An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. String dayWeek[]= new String[7]; String[] month; month = new String[12]; Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the preceding illustration, numbering begins with 0. dayWeek[0] = “Monday”; month[11] = “December”;

Слайд 4





Array
int month_days[ ]  = {31, 28, 31, 30, 31, 30, 
				31, 31, 30, 31, 30, 31} ;

int month_days[ ]  = new int[12];
month_days[0] = 31;
month_days[1] = 28;
// . . .
month_days[11] = 31;
int n = month_days.length;	  // n = 12
System.out.println(month);	  //[I@659e0bfd
Need override toString(); 
or use Arrays.toString(month);
Описание слайда:
Array int month_days[ ] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} ; int month_days[ ] = new int[12]; month_days[0] = 31; month_days[1] = 28; // . . . month_days[11] = 31; int n = month_days.length; // n = 12 System.out.println(month); //[I@659e0bfd Need override toString(); or use Arrays.toString(month);

Слайд 5





Array
char twod1[ ][ ]= new char[3][4];
char[ ][ ] twod2= new char[3][4];
double m[ ][ ]= 	{{0, 1, 2, 3}, 
	{4, 5, 6, 7},
	{8, 9, 10, 11},
	{12, 13, 14, 15}};
int twoD[ ][ ]= new int [4][ ];
twoD[0]= new int [1];
twoD[1]= new int [2];
twoD[2]= new int [3];
twoD[3]= new int [4];
int[ ][ ] irregular={{1},{2,3,4},{5},{6,7}}; // Rows not equal
Описание слайда:
Array char twod1[ ][ ]= new char[3][4]; char[ ][ ] twod2= new char[3][4]; double m[ ][ ]= {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}, {12, 13, 14, 15}}; int twoD[ ][ ]= new int [4][ ]; twoD[0]= new int [1]; twoD[1]= new int [2]; twoD[2]= new int [3]; twoD[3]= new int [4]; int[ ][ ] irregular={{1},{2,3,4},{5},{6,7}}; // Rows not equal

Слайд 6





while
Описание слайда:
while

Слайд 7





do while
Описание слайда:
do while

Слайд 8





for
The for statement provides a compact way to iterate over a range of values.
Описание слайда:
for The for statement provides a compact way to iterate over a range of values.

Слайд 9





for
Another representation of statement for
Описание слайда:
for Another representation of statement for

Слайд 10





break
The break statement terminates the for, while and do-while loop.
Описание слайда:
break The break statement terminates the for, while and do-while loop.

Слайд 11





continue
The continue statement skips the current iteration 
the for, while and do-while loop.
Описание слайда:
continue The continue statement skips the current iteration the for, while and do-while loop.

Слайд 12





Sum, product, amount
There’s an array int[] arr = {2, -5, 7, -4, 8};
What will results after running next code?
Описание слайда:
Sum, product, amount There’s an array int[] arr = {2, -5, 7, -4, 8}; What will results after running next code?

Слайд 13





Minimum, maximum ...
Описание слайда:
Minimum, maximum ...

Слайд 14





Sorting
Описание слайда:
Sorting

Слайд 15





Practical tasks
Create an array of ten integers. Display 
the biggest of these numbers;
the sum of positive numbers in the array;
the amount of negative numbers in the array.
    What values there are more: negative or positive?
Create a class Employee with fields name, department number, salary. Create five objects of class Employee. Display
all employees of a certain department (enter department number in the console);
arrange workers by the field salary in descending order.
Описание слайда:
Practical tasks Create an array of ten integers. Display  the biggest of these numbers; the sum of positive numbers in the array; the amount of negative numbers in the array.     What values there are more: negative or positive? Create a class Employee with fields name, department number, salary. Create five objects of class Employee. Display all employees of a certain department (enter department number in the console); arrange workers by the field salary in descending order.

Слайд 16





HomeWork (online course)
UDEMY course "Java Tutorial for Complete Beginners": https://www.udemy.com/java-tutorial/
Complete lessons 8, 9, 12, 14 - 16:
Описание слайда:
HomeWork (online course) UDEMY course "Java Tutorial for Complete Beginners": https://www.udemy.com/java-tutorial/ Complete lessons 8, 9, 12, 14 - 16:

Слайд 17





Homework
Ask user to enter the number of month. Read the value and write the amount of days in this month (create array with amount days of each month).
Enter 10 integer numbers. Calculate the sum of first 5 elements if they are positive or product of last 5 element in the other case.
Enter 5 integer numbers. Find 
position of second positive number;
minimum and its position in the array.
Organize entering integers until the first negative number. Count the product of all entered even numbers.
Create class Car with fields type, year of production and engine capacity. Create and initialize four instances of class Car. Display cars
certain model year  (enter year in the console);
ordered by the field year.
Описание слайда:
Homework Ask user to enter the number of month. Read the value and write the amount of days in this month (create array with amount days of each month). Enter 10 integer numbers. Calculate the sum of first 5 elements if they are positive or product of last 5 element in the other case. Enter 5 integer numbers. Find position of second positive number; minimum and its position in the array. Organize entering integers until the first negative number. Count the product of all entered even numbers. Create class Car with fields type, year of production and engine capacity. Create and initialize four instances of class Car. Display cars certain model year (enter year in the console); ordered by the field year.

Слайд 18





THE END
Описание слайда:
THE END



Теги Arrays Loops. Java Core
Похожие презентации
Mypresentation.ru
Загрузить презентацию