java Überschreiben von Superklasse Methoden in Unterklassen
https://www.java-tutorial.org/vererbung.html

JAVA_26
https://www.meetup.com/ru-RU/Java-Paraguay/events/past/
Paraguay (amtlich: República del Paraguay [re'puβlika ðel pɑɾɑ'ɣwaj]; auf Guaraní: Tetã Paraguái) ist ein Binnenstaat in Südamerika, der im Osten an Brasilien, im Süden und Westen an Argentinien und im Norden und Westen an Bolivien grenzt. Die südliche und südöstliche Landesgrenze wird vom Fluss Paraná gebildet, die südwestliche sowie nordöstliche vom Río Paraguay, der das Land durchquert. Der Name des Flusses, nach dem auch der Staat benannt ist, stammt von der Sprache der Ureinwohner, Guaraní.
|
Tetã Paraguái (Guaraní) República del Paraguay (spanisch) |
|||||
| Republik Paraguay | |||||
|
|||||
JAVA_26 Nathan Shutz
Deutsch hilft mir, Java zu lernen
𝔇𝔢𝔲𝔱𝔰𝔠𝔥 𝔥𝔦𝔩𝔣𝔱 𝔪𝔦𝔯, 𝔍𝔞𝔳𝔞 𝔷𝔲 𝔩𝔢𝔯𝔫𝔢𝔫
JAVA_25
09 2019 20:46:49
𝔖𝔞𝔪𝔪𝔢𝔩𝔰𝔱𝔢𝔩𝔩𝔢 𝔖𝔬𝔫𝔫𝔱𝔞𝔤, 16. 𝔍𝔲𝔫𝔦 2019, 22.08.14 𝔘𝔥𝔯
. 𝔄𝔨𝔱𝔲𝔢𝔩𝔩𝔢 ℨ𝔢𝔦𝔱 16:08:41, 𝔐𝔬𝔫𝔱𝔞𝔤 10, 𝔍𝔲𝔫𝔦 2019 𝔐𝔖𝔎 . http://study-java.ru/uroki-java/urok-3-znakomstvo-s-eclipse/comment-page-3/ Hello World
Dienstag Juni 2019 https://ru.wikipedia.org/wiki/0_(%D1%87%D0%B8%D1%81%D0%BB%D0%BE)#%D0%9D%D0%BE%D0%BB%D1%8C_%D0%B2_%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%BC_%D0%B0%D0%BD%D0%B0%D0%BB%D0%B8%D0%B7%D0%B5
876 . . ., .
, 300 . . ., -, , . « » « 0»[15].
Java ? 0. https://habr.com/en/post/219595/ Java : « (binary) . , 1/3, 1/10. , BigDecimal». , π 0.2, double Java. -, - , Java . , . «»
JAVA_24
https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BD%D0%BA%D0%B0%D1%82%D0%B5%D0%BD%D0%B0%D1%86%D0%B8%D1%8F#%D0%92_%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B5 ́ (. concatenatio « ; ́») — , . , «» «» «».
JAVA_23
https://www.tutorialspoint.com/compile_java_online.php
.
https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.22.2
Table of Contents
JAVA_22 22:26:29
𝔐𝔦𝔱𝔱𝔴𝔬𝔠𝔥, 5. 𝔍𝔲𝔫𝔦 2019 𝔐𝔬𝔰𝔨𝔞𝔲𝔢𝔯 ℨ𝔢𝔦𝔱 (𝔐𝔖𝔎) 0300 𝔘𝔗ℭ 𝔘𝔫𝔱𝔢𝔯𝔰𝔠𝔥𝔦𝔢𝔡 𝔳𝔬𝔫 ℑ𝔥𝔯𝔢𝔪 𝔖𝔱𝔞𝔫𝔡𝔬𝔯𝔱:
https://professorweb.ru/my/csharp/charp_theory/level3/3_12.php C# , , C#. () . , bool, float double.
, , , . , , , . C# :
. , - 0, 0. . 1 - , 1 . , , . a, :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
chet(16);
provChet(8);
nechet(16);
Console.ReadLine();
}
// ,
// [0, x] c
// &
static void chet(int x)
{
int result;
Console.WriteLine(" 0 {0}:\n",x);
for (int i = 0; i <= x; i++)
{
// ,
//
result = i & 0xFFFE;
Console.Write("{0}\t",result);
}
}
// ,
static void provChet(int x)
{
Console.WriteLine("\n\n 1 {0}\n",x);
for (int i = 1; i <= x; i++)
JAVA_21 Samstag, 1. Juni 13:40:29 Moskau 2019 https://habr.com/en/post/320712/ Switch vs If
Samstag, 1. Juni 2019, 19:32:41 Uhr
//\\
https://www.compilejava.net/ !!!!!!!!!!!!!!!!
\\//
𝔄𝔩𝔩𝔢𝔰 𝔦𝔰𝔱 𝔴𝔢𝔤. 𝔚𝔦𝔢 𝔨ö𝔫𝔫𝔱𝔢 𝔦𝔠𝔥 𝔟𝔦𝔱𝔴𝔢𝔦𝔰𝔢 𝔬𝔡𝔢𝔯 𝔟𝔦𝔱𝔴𝔢𝔦𝔰𝔢 𝔒𝔭𝔢𝔯𝔞𝔱𝔦𝔬𝔫𝔢𝔫 𝔳𝔢𝔯𝔤𝔢𝔰𝔰𝔢𝔫
𝔥𝔱𝔱𝔭𝔰://𝔪𝔢𝔱𝔞𝔫𝔦𝔱.𝔠𝔬𝔪/𝔧𝔞𝔳𝔞/𝔱𝔲𝔱𝔬𝔯𝔦𝔞𝔩/2.13.𝔭𝔥𝔭
https://www.compilejava.net/
https://vertex-academy.com/tutorials/ru/cikl-for-each/
https://vertex-academy.com/tutorials/ru/system-print-i-system-println/ ?
https://vertex-academy.com/tutorials/ru/samouchitel-po-java-s-nulya/
https://www.worldtimeserver.com/aktuelle-Zeit-in-RU-MOW.aspx
𝔇𝔞𝔰 𝔤𝔞𝔫𝔷𝔢 𝔢𝔯𝔰𝔱𝔢 𝔍𝔞𝔥𝔯
𝔇𝔞𝔰 𝔏𝔢𝔯𝔫𝔢𝔫 𝔦𝔰𝔱 𝔡𝔢𝔪 ℨä𝔥𝔩𝔢𝔫 𝔦𝔫𝔫𝔢𝔯𝔥𝔞𝔩𝔟 𝔡𝔢𝔯 𝔢𝔯𝔰𝔱𝔢𝔫 𝔟𝔢𝔦𝔡𝔢𝔫 𝔤𝔢𝔴𝔦𝔡𝔪𝔢𝔱
ℨ𝔢𝔥𝔫, 𝔲𝔫𝔡 𝔢𝔱𝔴𝔞 𝔦𝔫 𝔡𝔢𝔯 𝔢𝔯𝔰𝔱𝔢𝔫 𝔍𝔞𝔥𝔯𝔢𝔰𝔥ä𝔩𝔣𝔱𝔢 - 𝔰𝔬𝔤𝔞𝔯 𝔡𝔦𝔢 𝔓𝔞𝔯𝔱𝔦𝔱𝔲𝔯
𝔦𝔫𝔫𝔢𝔯𝔥𝔞𝔩𝔟 𝔢𝔦𝔫𝔢𝔰 𝔇𝔲𝔱𝔷𝔢𝔫𝔡𝔰.
, , . .
https://riptutorial.com/ru/java/example/14282/the-shift-operators---------and-----
(<<, >> >>> )
Java . 32 64- .
, ,
, .
<< , , , . .
«>>» , , , , . .
JAVA_CODE , . Hello World!

ageOfBob = 0
ageOfMary = 0
print("Input Bob's age: ")
read(ageOfBob)
print("Input Marry's age: ")
read(ageOfMary)
// Do the math
if (ageOfBob > ageOfMary)
print("Bob is older than Mary by ", ageOfBob - ageOfMary, " years")
else if (ageOfBob < ageOfMary)
print("Mary is older than Bob by ", ageOfMary - ageOfBob, " years")
else
print("Mary and Bob are of the same age")
, , , C- , , .
---, , , :
const MAX_PERSON_AGE = 120
const MIN_PERSON_AGE = 1
int getAge(string name) {
age = 0
print("Input ", name, "'s age: ")
read(age)
if (age < MIN_PERSON_AGE or age > MAX_PERSON_AGE)
throw IncorrectAgeInputException
else
return age
}
try {
ageOfBob = getAge("Bob")
ageOfMary = getAge("Mary")
} catch (IncorrectAgeInputException) {
print("You're doing it wrong!")
}
// Do the math
...
( — ) ( Don't Repeat Yourself
JAVA_20 27 2019 15:56:41 https://beginnersbook.com/2013/03/inheritance-in-java/ /home/alex/Consolejava/Study-java/etud/9/9_82/9_827/src/InitializationOrder.java result good https://farenda.com/java/java-initialization-order/ https://www.youtube.com/watch?v=PuV6N3aCOxg&list=PLrCZzMib1e9pnFbVV3u4s7ki5NTnm7WgT&index=2
Java Initialization order 39:31/1:29:35 what about init order , 14 . , , 5+ . . . UNIX®. % .:2002. .528 UNIX. . 3- . . , . .. - UNIX: ( ) UNIX and Linux System Administration Handbook, 5th Edition todo https://vk.com/wall-3183750?offset=0&owners_only=1&q=%23unix http://www.stolyarov.info/books/asm_unix asm 1 and 2 https://www.youtube.com/watch?v=7MOHC94Ukj4 Hello world linux alex@alex:~/Consolejava/Study-java/etud/9/9_82/9_828/src/asm-hello$ ./a.out
Hello, world! . Hello World . cycle.o https://introcs.cs.princeton.edu/java/13flow/ https://introcs.cs.princeton.edu/java/13flow/TenHellos.java.html . https://introcs.cs.princeton.edu/java/13flow/ -. 28 2019 https://shendenkov.at.ua/index/prostoj_kalkuljator_na_java/0-17 , . . , , , MyCalculator. , . - Java. Java - , . , , . , . . , . NetBeans'a , . . . , . Java PrimitiveCalculator. , class interface. , , , . : . 4 , . : , . implements, PrimitiveCalculator. double String, add, sub, mul div. , , . return, - .
JAVA_19 JAVA_19 -> JAVA_20 27 2019 15:56:41
// 22 2019 22:10:35
// /home/alex/Desktop java Tutorial for Beginners
// 00:15:43
// public
class MyFirstClass {
/*
* * This is my first
* * Java program.
* * I am new to Java.
* */
public static void main(String[] args){
// My First statement
System.out.println("Hello World");
//
int x = 10;
int y = 20;
int result = x + y;
System.out.println(result);
}
}
// Run as
// Hello World
// 30
// 00:16:45 -
23 2019 Hello World, , - Hello World. .
Java Concurrency Ÿ ,
, Java Java 5.0
Java 6.
.
. Java .
—Martin Buchholz
JDK Concurrency Czar, Sun Microsystems
, . , , .
Hello World1 2
:
alex@alex:~/Consolejava/Study-java/etud/9/9_81/9_82/src/9_83$
GuruThread1 GuruThreadHW1
public class GuruThreadHW1 implements Runnable{
/**
* @param args
*/
public static void main(String[] args) {
Thread guruThreadHW1 = new Thread("Hello World!1");
Thread guruThreadHW2 = new Thread("Hello World!2");
guruThreadHW1.start();
guruThreadHW2.start();
System.out.println("Thread names are following:");
System.out.println(guruThreadHW1.getName());
JAVA_18
https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B0_%D0%B5%D1%81%D1%82%D0%B5%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%BE%D0%B3%D0%BE_%D1%8F%D0%B7%D1%8B%D0%BA%D0%B0
, - — . , SHRDLU, « » , , . , .
AI- , . «» — .
https://ru.wikipedia.org/wiki/GATE_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0)
General Architecture for Text Engineering (GATE, ) — , Java[1]. 1995 .
GATE , . GATE NLTK, R RapidMiner [2]. , , , (, WordNet), (Weka, RASP, MAXENT, SVM Light), (, Twitter) [3].
https://ru.wikipedia.org/wiki/MARF
New Netjava7 Netjava6 Netjava5
13 2019 14:14:58
JAVA_15
, 13 2019 . 15:53 +
JAVA_15
13.05.2019
09 2019 14:36:59
Netjava5 09 2019 14:35:24
.
, .
https://www.youtube.com/watch?v=-8Fd68XRxCY
Neural Networks w/ JAVA - Tutorial 03
NeuralNetworksPrj02
src
com.za.tutorial.neuralnetworks
Driver.java
Percptron.java
JRE System Library
: 12 2019 22:07:35
https://www.youtube.com/watch?v=-8Fd68XRxCY
Neural Networks w/ JAVA - Tutorial 03
1:40/16:18
Driver.java Perceptron.java
? ? ,
4:21/16:18 Souce folder:NewokksuralNetPrj03/src
Driver.java
package com.za.tutorial.neuralnetworks;
public class Driver{
public static void main(String[] args){
// TODO Auto-geterated method stub
}
}
// , : https://github.com/ivan-vasilev/neuralnetworks/blo...on/BackPropagationTrainer.java
: 268 .
: https://github.com/ivan-vasilev/neuralnetworks/find/master
. .
https://github.com/ivan-vasilev/neuralnetworks/blob/master/README.md
93 lines Ivan Vasilev
13 2019
My Eclipse :
new 3-
NeuralNetworksPrj02
src bin
src com.za.tutorial.neuralnetworks
JRE sys...?
src, com.za.tutorial.neuralnetworks
: https://github.com/ivan-vasilev/neuralnetworks/find/master
, , https://www.youtube.com/watch?v=ZJNklhq1zvg
RU 3
0:03 / 13:05
Neural Networks w/ JAVA - Tutorial 01
cant find where to download the source code? On your site is just the youtube video Patrick Hentschel 2 years ago . .
Vasil Dimitrov : Download Source Code' on top left or directly http://sites.fastspring.com/zaneacademy/product/all
$ unrar e file.rar
$ unrar e Neural Network Programming with Java.rar
sudo dpkg -i _.deb
sudo dpkg -i unrar_5.3.2-1+deb9u1_amd64.deb
alex@alex:~/Desktop$ unrar e NeuralNetworkJava.rar
Desktop : Neural Network Programming with java.pdf OK !
google translate
. , . ?
, Downloading the example code
You can download the example code files from your account at http://www.
packtpub.com for all the Packt Publishing books you have purchased. If you
purchased this book elsewhere, you can visit http://www.packtpub.com/support
and register to have the files e-mailed directly to you.
? Packtpub .
Pactpub support java Yandex . :
https://sharewood.pro/threads/packtpub-%D0%9F%D1%8...rk-programming-with-java.1379/
.
JAVA_16
New Netjava6 Netjava5
13 2019 14:14:58
JAVA_15
, 13 2019 . 15:53 +
JAVA_15
13.05.2019
09 2019 14:36:59
Netjava5 09 2019 14:35:24
.
, .
https://www.youtube.com/watch?v=-8Fd68XRxCY
Neural Networks w/ JAVA - Tutorial 03
NeuralNetworksPrj02
src
com.za.tutorial.neuralnetworks
Driver.java
Percptron.java
JRE System Library
: 12 2019 22:07:35
https://www.youtube.com/watch?v=-8Fd68XRxCY
Neural Networks w/ JAVA - Tutorial 03
1:40/16:18
Driver.java Perceptron.java
? ? ,
4:21/16:18 Souce folder:NewokksuralNetPrj03/src
Driver.java
package com.za.tutorial.neuralnetworks;
public class Driver{
public static void main(String[] args){
// TODO Auto-geterated method stub
}
}
// , : https://github.com/ivan-vasilev/neuralnetworks/blo...on/BackPropagationTrainer.java
: 268 .
: https://github.com/ivan-vasilev/neuralnetworks/find/master
. .
https://github.com/ivan-vasilev/neuralnetworks/blob/master/README.md
93 lines Ivan Vasilev
13 2019
My Eclipse :
new 3-
NeuralNetworksPrj02
src bin
src com.za.tutorial.neuralnetworks
JRE sys...?
JAVA_14 java debian vim
02 2019 19:20:01
, . .
, . . , . .
. , Debian, - , .
, , Windows 10 , cmd.
, . , , java junior.
. . ?
.
Vim , . , , . Emacs, .
http://mainloop.ru/vim-text-editor/vim-replace-text-regexp.html
vim:
%s/BIT\([0-9]*\)/_BV( \1 )/gc
%s/Junior\([0-9]*\)/ ( \1 )/gc
, Junior .
02 2019 19:20:01
https://scabere.livejournal.com/62886.html
100 vim,
vnew . 2 . . . . - , , . .
?
04 2019 20:09:04
04 2019 10:35:54 04 2019 13:26:38 .
16:02:26 , . , : .
: -
: : - . ..
: 1978
https://www.youtube.com/watch?v=ppCCuyxMmpI
Java (Defining class Date in Java)
(source code): https://drive.google.com/drive/folder... , int day, String month, int year. equals(Date otherDate), toString(), precedes(Date)
http://study-java.ru/uroki-java/urok-5-sozdanie-i-vyzov-klassa-v-java/
https://drive.google.com/drive/folders/0B2LrgVgbCNE8bHdDak95Y1FsR00
Date.java DateDemo.java
[ http://study-java.ru/uroki-java/ ~~~~ ]
http://v-resheno.ru/161292-java-code-for-calculating-leap-year
" " Java", , , . ACM Java Task Force .
https://stackoverrun.com/ru/q/5051140
stackoverrun
Java 3 2
, . @ Dennis Meng acm.program. * - , Stanford Java. , , ,
https://www.ecs.baylor.edu/index.php?id=865139
ACM Programming Contest
https://yandex.ru/video/search?text=http%3A%2F%2Fstudy-java.ru%2Furoki-java%2Furok-5-sozdanie-i-vyzov-klassa-v-java%2F&path=wizard&noreask=1&filmId=2927977977465503181
http://study-java.ru/uroki-java/urok-5-sozdanie-i-vyzov-klassa-v-java/
https://www.ozon.ru/context/detail/id/31683007/?utm_source=yandex_direct&utm_medium=cpc&utm_campaign=product_1132527_mspt_dsa_all_books_nonfiction_33216980&utm_term=_cbrx_0
. , .
Machine Learning: The Art and Science of Algorithms That Make Sense of Data
04 2019 20:09:04
?70x100/16
100
2015
27 2019 17:38:58
Netjava4
.
•
.
•
–
,
•
:
–
.
https://www.youtube.com/watch?time_continue=699&v=j6aj9id7598
:
http://1spbgmu.ru/ru/obschestvennaya-zhizn/90-glav...kaya-laboratornaya-diagnostika
, ...
http://vmede.org/sait/?page=49&id=msprav_Onkologija&menu=msprav_Onkologija
.
.
27 2019 20:44:33
-
. — .
42- . , , , .
: « , . , . , - ».
— — 1999 . , . .
, . . . : « , — , , ».
. — . …
: « , . ».
, , , . , . — . . , , .
: « , ».
. , . , .
— 20 . , . , , .
https://www.ntv.ru/novosti/262234/
https://tsargrad.tv/news/vypendrezh-cenoju-zhizni-...rila-oshibku-nachalovoj_196885
, . , .
. .
, . . https://www.fontanka.ru/2019/04/26/147/?utm_referr...yandex.com%2F%3Ffrom%3Dspecial
28 2019 00:14:12
//
,
, , -
JAVA_12
liveinternet 27 2019 17:34:29
21 2019 19:53:47
alex@alex:~/Consolejava/alishev/Student$ javac Student.java
Student.java:33: error: class GFG is public, should be declared in a file named GFG.java
public class GFG
^
1 error
alex@alex:~/Consolejava/alishev/Student$
https://www.youtube.com/watch?v=8AD55r64yNw&t=749s
. .
Java . 12: for each, .
Student. C GFG
13 ?
Java . 13: .
, 14 ? .
https://www.youtube.com/watch?v=uPK2FVz6qUs
Java . 14: .
C GFG
Java . 15: Java
Java . 16: .
https://www.youtube.com/watch?v=wEewTdZEWPY
. 20 . . .
alex@alex:~/Consolejava/alishev/ArrayGfg$ ls
GFG.class array.java
alex@alex:~/Consolejava/alishev/ArrayGfg$
alex@alex:~/Consolejava/alishev/ArrayGfg$ java GFG
Element at index 0 : 10
Element at index 1 : 20
Element at index 2 : 30
Element at index 3 : 40
Element at index 4 : 50
alex@alex:~/Consolejava/alishev/ArrayGfg$
.
alex@alex:~/Consolejava/alishev/Student$ ls
Student.java
alex@alex:~/Consolejava/alishev/Student$
, , 22 2019
http://www.cyberforum.ru/java-j2se/thread926200.html
:
alex@alex:~/Consolejava/alishev/Student$ sudo javac -d bin src/Student.java
src/Student.java:14: error: cannot find symbol
Student[] arr;
^
symbol: class Student
location: class GFG
src/Student.java:17: error: cannot find symbol
arr = new Student[5];
^
symbol: class Student
location: class GFG
src/Student.java:20: error: cannot find symbol
arr[0] = new Student(1,"aman");
^
symbol: class Student
location: class GFG
src/Student.java:23: error: cannot find symbol
arr[1] = new Student(2,"vaibhav");
^
symbol: class Student
location: class GFG
src/Student.java:26: error: cannot find symbol
arr[2] = new Student(3,"shikar");
^
symbol: class Student
location: class GFG
src/Student.java:27: error: cannot find symbol
arr[3] = new Student(4,"dharmesh");
^
symbol: class Student
location: class GFG
src/Student.java:28: error: cannot find symbol
arr[4] = new Student(5,"mohit");
^
symbol: class Student
location: class GFG
7 errors
alex@alex:~/Consolejava/alishev/Student$
, , 22
https://www.youtube.com/watch?v=wEewTdZEWPY
Java . 16: .
21 2019 23:14:57
metanit.com/java/tutorial
https://metanit.com/java/tutorial/
: https://metanit.com/java/tutorial/3.1.php
. -
.
class Person{
https://metanit.com/java/tutorial/2.4.php
, . . - , :
JAVA_11__Grunge
https://hr-vector.com/java/massivy-java
— , . Java , C/C++. :
, . C/C++, sizeof.
.
, 0.
, .
int, long short.
Object.
Cloneable and java.io.Serializable.
, .
https://hr-vector.com/java/massivy-java
https://www.youtube.com/watch?time_continue=4&v=S5py6aB-a7o
alichev Java . 12: for earch, .
https://hr-vector.com/java/massivy-java ,
, , .
20 2019 21:27:50
21 2019 13:01:08
// Grunge grənj , .
- « »[24][25], Crazy Horse, . -, Pearl Jam. Rust Never Sleeps, .
"Powderfinger"
Tonight my heart well it broke like glass
I made a mistake that i'll never surpass
I'm floating in space unattached to the world
I cast off the memory of the spell of that girl
Whatever I get I guess its what I deserve..
Powderfinger - I Don't Remember
«Back To Sub Pop #2»
, , 1992 , Sub Pop, Nirvana. The Depressounds, Sapless, Underthals Stoner Heart.
: https://kudago.com/msk/event/koncert-back-sub-pop-2/
https://www.litmir.me/br/?b=293067&p=1
1991-. , . : - , , , «Time», «Vanity Fair», «Vogue». , , , , , , H-. , , , , - !
https://music.yandex.by/artist/5818760
http://guitarprofi.ru/stili-muzuki-i-gruppi/stili-muzuki/granzh.html
, «» 22 AR2738, 14 .
, . ? . , . , . , , .
. . CMD . .
JAVA_10 20 2019
////////////////////////////////////////////////////////////////
/* main() 16 . insert()
, .
, find() 27.
:
9 18 27 36 45 54 63 72 81 90 99 108 117 126 135 144
Found 27
261
binarySearch.java 16 . . 6.9
, recFind()
. « »
27, 2 (
). -
recFind() ; , find()
.
, -
: O(logN ). ,
.
18 2019 21:50:51 End */
19 2019 18:12:23
// 27
http://study-java.ru/uroki-java/urok-11-sortirovka-massiva/
:
sort() Arrays. .
/* sort() Arrays (Quicksort), . , .
: java.util.
*///
import java.util.*;
Arrays.sort(arr);// arr
// :
//
int arr[] = new int[10];
for(int i = 0; i < arr.length; i++) {
arr[i] = (int)(Math.random() * 100);
System.out.print(arr[i] + " ");
}
System.out.print("\nSorted: \n");
//
Arrays.sort(arr);
// .
for(int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
// :
//
Integer arr[] = new Integer[10];
for(int i = 0; i < arr.length; i++) {
arr[i] = (int)(Math.random() * 100);
System.out.print(arr[i] + " ");
}
System.out.print("\nSorted: \n");
//
Arrays.sort(arr, Collections.reverseOrder());
// .
/* , ( ) Integer[] int[].*/
for(int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
/* . , sort() Collections.reverseOrder().
Arrays.sort(names, Collections.reverseOrder());
, sort() . , , .
*/
https://pastebin.com/ADcGm1F6
public static void main(String args[]) {
// 1
{
System.out.println("ORIGINAL:");
int arr[] = new int[20];
for(int i = 0; i < arr.length; i++) {