Методичка примеры языков программирования и кодиро

Методичка примеры языков программирования и кодирования и программ Крутилова НН СибГиУ НфиКемГУ

Крутилова Н.Н.
Учебная библиотека
(мск библеотека ленина картотека физическая культура карты картография новигация цикл цикличность цеклорозофорез реагент интеграл интегральное вероломство все выписываешь на бумажку и номера и детали  копируешь бумажку и с другой стороны и потом идешь к бабке и она отдает вниз тебе
Система Эйзенхауэр)



Управления запасами
Учетна запись
 Методика
Язык программирования С# си шарп

Програмирование Аркада С++++ UVb (uVa) client actsiza type programmer scratcher-scatcher-surfer
Type delphy deltoida
Pythone phyton

Методичка в помощ студента программиста микс языков и примеры с общими параметрами стандарта воссоздания алгоритма и структуры архитектуры программирования с точки зрения вирусного копирования и возвращения к базе языка



#76549fc03eb94625cvartshopgo4.ward



140.213.142.108
cf-ray

#fn(ctn) #kingzero #go #;   
@&
#&@NINTENDOQ  #
#;NM 
#Assembler #call #strt
# #PYTHON
#COBR

#;




#BODY
#UML #PROTOCOLE #PROXY #misstake #SEESHARP #FIX #& #RECALL (@&#=#=@#&~#end=
#NINTENDOQ




@START
#Start
@AUTOPILOT
#AUTOPILOT

[?]ENTER:
"In Response to 'TreborNotlaw'
The word unfriend reminds me that if you go to Youtube and search for massive wagons china plates there's a very good song with a video that also features David Mitchell"
 
#bodyfunctionstartendinfinitum
BINARIOUSCODE DE ENTERE LOGO FAGUN UNTRO VERD ST
BIUFUNCTION[biu]

[///]Code Tags:
  [b]This text will be in bold[/b]
   [i]This text will be in italics[/i]
    [u]This text will be underlined[/u];

{ [!]LINKS(/b):
"Any 'URL' entered (http://...) will link automatically Your Message The full text of your reply";

 [;]CRYPTO(/i)
 [&](/u)}
end#








#& (crypto) new money currency dogecoin nintendoq electronnayadenezhka onlinemoney 

#NM& 
#&
#p€
#m;
 #x;
#xmp
#enigma
#rootswrvergeneraterandomshuffle

#kingzero
#go

#strt #fn(ctn) #:
[!]~{LNKS(b)}=&="An'RL'ntrd~
@SSSin:
#@#\\&//#@#
&IIII&&lllll&&&.. ... ........ ......... ............ .............
^*^&@;:


&;@€;;...


:>>:::>>>>:::::::::::
http://...//>;rssmlmj";\\<B>...
@--ND#
@infinitum

Twg//shffll:cmpzr

@Mtstrtsmrtgdrchndhlthlpvpnnd
#Mtstrtsmrtgdrchndhlthlpvpnnd
#@Mtstrtsmrtgdrchndhlthlpvpnnd
@@Mtstrtsmrtgdrchndhlthlpvpnnd
@#@Mtstrtsmrtgdrchndhlthlpvpnnd
.
@#@Mtstrtsmrtgdrchndhlthlpvpnndnnpvp...
#BODY
 #Start

* You can search the package id, packageid, version, title, tags, author, description, summary, or owner properties by using the syntax <property>:<term>.
* Search applies to keywords and descriptions, and is case-insensitive. For example, the following strings all search the id property for the string nuget.core:;id:NuGet.Core;ID:nuget.core;Id:NUGET.CORE
* Searches on the id property match substrings, while packageid and owner use exact, case-insensitive matches. For example:;PackageId:jquery searches for the exact package ID jquery.;Id:jquery searches for all package IDs that contain the string jquery.
* You can search for multiple values or properties at the same time. For example:;id:jquery id:ui searches for multiple terms in the id property.;id:jquery tags:validation searches multiple properties.
* Search ignores unsupported properties, so invalid:jquery ui is the same as searching for ui, and invalid:jquery returns all packages.



#Glitch  #crl  #sharp  #binar  #coding  lngw4Iol lngw4lol Ingw4IoI  lngw4Iol





#LOL
 #Start :
  #BODY :: 
   Glitch crl sharp binar coding lngw4Iol
    rplc{GLTCHCRLSHRPBNRCDIvvI01•
#END
 
#GPHCHSSPHBFPH

GltchcrlshrpbnrcdngngwIl
Gif4;;RFDxf11NINTENDO
glphchsslphbfphll
Gphchssphbfph

#GPHCHSSPHBFPH
#plate

@Gf4&&Fd

#redo #re #do
6,181354396936743
#open
44inx43log10=185.1401831011830...
@ChlnksNipbinarNintendoq 
#ChlnksNipbinarNintendoq
@CLNKS @Nip @i @at @NIPBINAR @NINTENDOQ 
#x; #ChlnksNipbinarNintendoq #rootswrvergeneraterandomshuffle
#&

@GODLEON
@godleon
#godleon


4cd 4lp box it
C# 2000 #c #C





#godleon @Nintendo #nintendo 
#STATUS  #DIBUKA
Undang-undang RI Nomor 19 Tahun 2016 Pasal 40 (2a) dan (2b) Tentang Informasi dan Transaksi Elektronik
Maaf, akses ke situs ini diblokir oleh Pemerintah Indonesia
Karena Mengandung Konten Negatif
Yang Melanggar Peraturan Perundangan di Indonesia
Hubungi:;Aduankonten@mail.kominfo.go.id
#KOMINFO  -#XL  #Axiata
;
Indonesia Law No.19 year 2016 article 40(2a) regarding Information and Electronic Transaction
Sorry, access to this website been denied by The Government of Indonesia due to negative content as it violates Indonesia Law
Contact
Aduankonten@mail.kominfo.go.id
@KOMINFO - @XL @Axiata #add #topup #bonus #point

{#godleon
#nft
Composers Helmet
@composersguffle_entr_CRYPTO.}
#composersguffle_entr_CRYPTO

@Kingzero_zebra_watchout
#kingzero_zebra_watchout




#Name#SL-protocol

 “last log in/on” ex ………. >_
 #Start
  #Work if INT:PC::ON:::OPEN:::::STARTWORK::::::LIGHTON
#Hhttpwwwgogo

#BODY:come
@come
  #Repeat #always #comeback #copypast #startover #keepdata #ip #map @#come#@ #@come@# @#emoc#@ #@emoc@#

Last login: Fri Dec 23 23:51:53 on ttys000
body: FN(leon@Leons-MacBook-Pro) :: ~ % /Users/leon/Desktop/IndexerVolumeGuid ; exit; continue; reenter; rewrite;
zsh: exec format          #list #it #goto#=#go#to
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed…

[Process completed; start over again; check data; recheck; come back; rewrite]


          AUTOPILOT#::::::COME//BACK&STARTOVER->KEEPDATA...



#NOENDinfinitum #(fn) #-> #kuki #koko #coco #kuku #kiki #AI #greyfacedai   #intellecta #starlink #starlink #KINGSLAYGO #KINGSLAY #KINGSLAYGO #KING0 #KING0 #KingZiro #COBR #COBR





 @blockweb
#blockweb
Negleq necro neklekt narciss impr prs kongl a/b/c/d ...nama (crazy science)

Neglectiq necromant neklektia
NARCISSO Imperator president konglemirat a/b/c/d ...nama


KING ZIRO KING KONG
Neglectique necromant neklektia
NARCISSO Imperator president konglemirat O LEON Nekron Neir O

natalia krutilova indonesia

Neglectiqua  necromant ma neklektaye
NARCISSCO Empera presidenta konglemirat MA Nekron  Neiro Neiron BEDOUIN NUT



Президент может пойти посажать

Blk_it_ct_vpn_tr_pp
  @--------


#xmp
#exl
#jpg
#gprs

#goup

IP address: 112.215.235.91
Time: 2022-11-17T00:17:54Z
URL:
@KUKI#COMMAND
@KUKI#JUSTDOIT
#kuki #command
#kuki #just #do #it #call #goto #go #to


@KUKI#reglrollartworkcospacesupercomex
#justcopypastnavigationsystem

Cycological decries
Maniacal disorder
Fanatique
Syndrome wangogh
Paliment sosiety structure
peniciline first finder
Ama noya apenoya ferdostreya gento stroya type



Diagnoza hi-teck urbana ski-fi religioza
Deagnosa verde untro vardaya stronk vehrt ulta dust
Ih liberta untro vaginale demoneya glotaya streppe memoreya gastro enterologika uste
 lipro-strogra-t-si-clyne bayer bayer
Gorto streck lagroprosole forte /zole EM

Autosomal dyognozyse horda
Glanda code duhast unzc Z C
Gor-d-o/t-o
Alt space genom E-S-T-A (44b)
gumahoid (rare) huw man oid
Random e-x-m-p-l (maple syrope)
Btsrt wos gnosta
Gl ultra
Radical
Color blue (blue change 2 lacmus)

Random
Fixation
Analysis
Feh RT
W ont FIXATION
gartaya
Nosal lebro stroke


KARP
 Start:
  body::
   Glitch crl sharp binar coding lngw4Iol
    rplc{GLTCHCRLSHRPBNRCDIvvI01;
END

Random
NuT pote (PO T)
On syndrome T bone gest
Code decreases
For t;
Diagnosa
Change LOCO
Chochondra chromosomos berta
Logretta stron G stroppon code BeDELTA DA Co --||<>regressiaFIXT-aa
Untra vaginalle
Green orange violet rotovirus
Cancer glotto
Fixation
Pain code marine add SALT (S-a(-/l/L))) Po-T' hormone
Code gest TPO hormone add once in stage gertruda
Fixation
Lacmus paper reactife 15nov22
Egg shell
Gorto cancer (reproduction regeneration)
Terrifique
Trafic watch color
Rocto
GREEN
G-rn-EE-nn/GRIFfIN code


Schulze method
Detective book worm music egddicted high hormone ensomneya epelepsy clitoric efficiency stymul patient bingo seam
simmilarity under standing mania
cal2# entre Fix
 disorder type actryse parasyte copy school hichhock
E-(31)-D-(28)-C-(29)-B-(25)-


#START
[?]ENTER:
# Input: d[i,j],
 the number of voters who prefer candidate i to candidate j.

# Output: p[i,j], the strength of the strongest path from





28 24 30 ...
-4   +2 -0 +6
29 26 27 ...
-3 -2 -1 +3

25 29 28 31
-2 0 0 0




Re:
candidate i to candidate j:

31
12
18
32
881
140
920
389
781

SayamauIbucuciautotikolkaIND

for i from 1 to C

    for j from 1 to C

        if i ; j then

            if d[i,j] > d[j,i] then

                p[i,j] := d[i,j]

            else

                p[i,j] := 0


for i from 1 to C

    for j from 1 to C

        if i ; j then

            for k from 1 to C

                if i ; k and j ; k then

                p[j,k] := max (p[j,k], min (p[j,i], p[i,k]))




LOL
 Start:
  body::
   Glitch crl sharp binar coding lngw4Iol
 
#misstake
#Newbody:
 set
  Is
   Autofix
    misstakes
And
 Detect
  #LANGUAGE
End;


В 17 строчке ошибка б10 б8
Б8/б9
 Б6/б9 каспаров кандиловский
(->{
Max min
A?
:=?
, ;?
Add c
 

Cirque de sunktum
44b

  rplc{GLTCHCRLSHRPBNRCDIvvI01•
END

#end

#BLOCK
#ALWAYSCHECKMISSTAKES

#ALWAYSCONNECTMEASELS

#alwaysdetectlanguage

#END
;no
;end
;always
;repeat
;lie
;gas
;stove
;open

:NAME

#Start
#activationasmehmesON
#storage
#keep
#reentre
#rewrite
#misstake
#copy
#past
#3







#Name: “last log in/on” ex ………. >__@

 #Start
  #Work  INT:PC:ON:OPEN:STARTWORK:LIGHT:ON
    Type @Hhttpwwwgogo

  #Fn (Repeat always) -> : copy/past/keepdata

#Last visit
 #login  Fri Dec 23 23:51:53 on ttys000
#BODY
 #Fn (leon@Leons-MacBook-Pro) :: ~ %
 /Users/leon/Desktop/IndexerVolumeGuid ; exit; continue;
#zsh {exec format
#Savingsession...
...copying shared history...
...saving history...truncating history files...
...completed…

[Process completed; start over again; check data; recheck; come back; rewrite]

(Start:((LISTIT)))::
(Proxy mistakes);

          Httpo //COME://BACK:(STARTOVER:)((KEEPDATA:))

#NOENDinfinitum

Hand of #Oxtancta  ; izrael izokael azazel asmehmes inokentii  illaah yealloh suleiman solomon shenma sheba Assamaleikym azza azeya anaya allilah amin amen ameno amonra ga ka nga

Left hand finger of destiny
#4bedouins  #ArcDeamons
#Prince  of terror  (@immortalas @presssConglts @2imperrors @crazyscientist)
#KingSL  {@nept @hitech  @noBio @plant}
#King  of Terror (@INKorporated @inkognita @zelenii @ashmedai)
#KINGSLAY  (@arcy @devils @redfaced @HORNED @debolas @imperatorDwvil @devilsSecretarry)

Right hand glove of devil ;
#4bedouins  #Archangels

#GreatKing  of terror (@peaceWorldhighSicietyBedouininBlckNWhiteMap) michael
#King  of #Angolmois  (@L @mangadjets @cremniums @biotech) urael
#King #Asmehmes  (@chinese, @uranus, @reability @reincornea) rafael
#KingZiro  (@L @presCongl @hightechbedouin @grandpaps) ieshua

#Start:
#Name trampet apocalipta
 #Constant  human life
  #Area azguard
   //coordinatesmapwhiteTechCerviceNoBioContract
    #license  viking
     //recalculatesinnersalldeathsentencedbehade
      #Type  cascade
        #Purpose  name
         #Work: independent
#BODY
#HIGHDEMANDCOMMAND
.COMMANDORS START WORK
..ASSISTANT REST
...MARSHALS ALL ON
....DESTINATION EARTH ERACONE ONE
.....PEACE LOVE \\o// #4evermetainfinitum ..... ....  ... .. .
... . . . Connect continues no end.

#Name trampet apocalipta
 #Constant: human life
  #Area: catholique
   //coordinatesmapwhiteTechCerviceNoBioContract
    #license: sinnersall
     //recalculatesinnersalldeathsentencedsouleless
      #Type: cascade
        #Purpose: name
         #Work: independent
#BODY
HIGHDEMANDCOMMAND:
.COMMANDORS START WORK
..ASSISTANT REST
...MARSHALS ALL ON
....DESTINATION EARTH ERACONE ONE
.....PEACE LOVE \\o// #4evermetainfinitum ..... ....  ... .. .
... . . . Connect continues #NOENDinfinitum

#Extra 
#Savingsession...
...copying shared history...
...saving history...truncating history files...
...completed…

[Process completed; start over again; check data; recheck; come back; rewrite]

(Start:((LISTIT)))::
(Proxy mistakes);

          Httpo //COME://BACK:(STARTOVER:)((KEEPDATA:))

#No:
#Start
  #BODY
     #If
 #this
 #like
 #that
 #then
 #like
 #this
 # : #

#If  #lalala #then  #what ?  #Than  #how 
#Copy  #past
#Forbid  #No
#always  #YES
#Exmpl
 #Start
  #BODY
Assembler is language of programming
#YES  #OF  #COURSE 
#c  #sharp  # is language of programming
yes of course
#PHYTON  #IS #LANGUAGE  #OF  #PROGRAMMING 
#BODY
  #Start
     :::::NO IF ((;""""!!!??? Wtf ur u em? Then fckng YES bliad' #do
!42750671042 fck hs ass

If delP4i is NT I46w egg ; then what?

BODY:START::''!?;**[=•_!~fn(x)::lF:NO:THEN:THAN:END:AND

Fn(int)beginalways4everexpt DANGER
wht (afcketc) is dngr?(questcenmark) lng egg off proga
NO wht IF YES
THEN/than(orwhtfckelse)
#NO:#END:#IN:#F#IN:#NI:#T:#U: #Midotttt^_^

No matter what do recall goto library keep data for ever proof double negative answer





#Name: ideot
#Body: programming progressive AI
 #Start: NO:END:IN:FIN:NI:T:U:Midotttt^_^
  Exct forbid question goto keep IP
   ECPT BEGIN START BODY DONE
    Exct forbid NO goto keep IP
     ECPT BEGIN START BODY DONE
      Ecpt keep running goto keep IP
       ECPT BEGIN START BODY DONE
Description:
Foulse true reglan soft gig Ing *sofist link bio incognito sef ar dng gest up on top of my head quo ds lng is fouls if no then i go jp n fx at ing lol for ev error ung gost alt space save fix proxy mistakes cp cp vpn under ground connection lay over restrict data moss save keep data got rok aof wear up date always come true
Reglan recall forbid income forbid unswear if restricted area new regroup rewrite new new new


Title
Heading
Subheading
Body
Monospaced
BIUS
    #Beginiffoulstruetruthno
E
N
D

#NOENDinfinitum

Современное использования программирования и языков английский аналитика аналог в соответсвии с теориями и базами данных:
Теория большого взрыва
Радиационная динамика
Калоидный коллайдер
Регламент взаимодействия сети
Радиоэлектроника понятие цепей
Автоматическое регулирование понятие взаимодействии организационного планировании и замеров
Оптимизация производственных процессов
Атомная физика
Ядерная физика
Ядерно реактивная физика
Лобачевский теория и понятия
Ядерные реакторы взаимодействия цепей и ментальная динамика программирования прогресс
Кинетическая динамическая математика
Кибернетика
Исследовательский анализ данных (EDA)
Нейтронный протонный взрыв
;
Замерочные приборы волного действия других уповней в том числе протонных нейтронных электронных и каких то там электрических другого уровня






Problem not stable nux
Algorithm Emanational disorders
Physics dynamics theory of big bang
Logic regression
The danger of exploder  in colloid collider

EXAMPLE
BEGIN
FUNCTION Fn(x)=logn(nn)^n
N=or~;

;;;
;;;;;;

Fn(;;;)=; was
Fn(;;;;;;)=;
?=progression
"Same as exponential function
Mathematics strives for infinity
Matrix
!?=integral
"Same as Regression
Mathematics strives to zero
Zero strives to splitting
Not stable exploration if in nux engine
Must be "Stabilla"

              N
St(n) =[    ]
              n
  N
[   ]=matrix
  n
St(;)=;





What was required to prove not stable
Problem not solved

FI(;)=;
FactorialFI(n)=sin(N)log(g)
FUNCTION Fn(x)=logn(nn)^n
Log(g)=Fn(x)
n(nn)^n matrix


Frequency radio wave
(The only way find the frequency same as healing cancer radio therapy and follow to move up cos if down physical exploder
w = 2\pi f
T = \frac{1}{f}
I_{cp} = \frac{1}{T}\int_0^Ti(t)\,\mathrm{d}t
I_{cp} = 0
J{\ displaystyle J}
я{\ displaystyle I}
{\ displaystyle I _ {\ text {A}} = J _ {\ text {AN}}}
;{\displaystyle\Delta}Sign equals 3JAVE(-jn6){\ displaystyle I _ {\ text {A}} = {\ sqrt {3}} J _ {\ text {AB}} e ^ {(- j {\ frac {\ pi} {6}})}}
i(t) = I_msin(wt)
i(t) = I_msin(wt + \beta)







W(;)=f(Fn)
W(;)=factorial?! Problem

Salvation

w = 2\pi f

                F(n)
W(x)=(2/pi)          (Circle motion)
W(x)={S(n)}{F(N)}
S integral S(t) t-time or speed
{()} - function matrix
W(x)->0->;
Sinusoid friction add


u ( t ) = u ;sin ( ; ; t )
U(t)=[{S(n)}][{W(x)}][{F(I)}]
W(;)=U(t)

#U
#W=#U
#S#T#U#B#I#L#LA

U(t)=[{S(n)}][{W(x)}][{F(I)}]
W(;)=U(t)

The circulating dynamic cycle
STABULLA
Problem solved


#St (;)=;
@S @(t) ->; in(0)
#S(t) -> #S
Protozygous cycle-reducing cleavage according to the theory of non
-existence, the Soul Cleaver
Because this stable acceleration is not of particles and not of cells and not of a protozoal particle, but the splitting between the links of invisible matter connecting the whole
Here you will split the nucleus proton neuron and neutron connections in the human body
And the wave should be aimed at splitting the binding matter of magnetic stellar nebula containing memory control stimulation of cancer development and regeneration blockers
This wave contributes to the prolongation of the life of the whole, although it accompanies the internal explosion of a nuclear reactor by the type of acceleration of heat absorption, the expiration of excess matter and the substitution of gases
The impact of external factors is considered stable
Bring it to the maximum and without stabilization start a new accelerating cycle to the wave movement of physics
Substitution of a confluence of reactive actions a sharp deterioration of the condition and then reaches such a speed that it stabilizes on its own

Протозиготное уменьшающее цикл расщепление по теории небытия
Расщепитель душ
Потому что эта стабилла ускорения не частиц и не клеток и не протозойной частицы а расщепление меж звеньевых невидимых материй соединяющих все целое
Вот вы расщиплЕте ядро протон нейрон и нейтронные связи в теле человека
А волна должна быть направлена на расщепления связующей материи магнитных звездное небулы содержащей память контроля стимуляции развития рака и блокаторов регенерации
Эта волна способствует продлению жизни всего целого хоть и сопутствует внутреннему взрыву ядерного реактора по типу ускорения поглощения тепла истечению лишнего вещества и замещения газов
Считается стабильным воздействие внешние ждать
Довести до максимум и без стабилизации начать новый ускоряющий цикл до волного движения физики
Замещения стечения реактивных действий резкое ухудшение состояния и за тем доходит до такой скорости что стабилизируется самостоятельно

Чтобы создать зиготу человека только возможно бездушное тело в космосе на астрономическом движении скоростя выше скорости света и звука и электричества в такую сторону что там не существует физических тел производство осуществляет только машина называется черная и белая технология студия принадлежит высокоткхнологичному бедоуин



Сиркулированный динамический цикл стабильно
Что и следовало доказать




u is the signal amplitude, peak voltage, in volts (V),
; is the signal pulse in radians per second (rad;s -1), defined as ; = 2;;; ; = 2;; / T, the signal frequency in hertz (Hz), T is the signal period in seconds (c).

Explanation
Blue: i(t) = I_msin(wt)
Red: i(t) = I_msin(wt + \beta)

For the second formula (wt + \beta), this is the AC phase, and \beta is the initial phase. Often, to simplify calculations, the initial phase is assumed to be zero.

The value of i(t) at any given time is called the instantaneous value of the alternating current. In general, all these terms are valid for any harmonic signals, but since we are discussing alternating current, we will stick to this terminology. The maximum value of the sin(x) function is 1, respectively, the maximum current value in our case will be equal to the I_m — amplitude value.

phase by 2 /3 radians{\displaystyle\ pi} (120 degrees) relative to the other two cables

The phase current is the current flowing through the receiver phase.
J{\ displaystyle J}

The current line is the current through the line.
I{\displaystyle I}

A, B and C are the names of the three lines. N is neutral in the case of a star connection. In the case of a triangle connection, there is no neutral.









If the receiver is connected by a star (also called Y).
The sign is equal to the year{\ displaystyle I _ {\ text {A}} = J _ {\ text {AN}}}

If the receiver is connected via delta (also called ) ,.
;{\displaystyle\Delta}Sign equals 3JAVE(-jn6){\ displaystyle I _ {\ text {A}} = {\ sqrt {3}} J _ {\ text {AB}} e ^ {(- j {\ frac {\ pi} {6}})}}

So if explode ; all done
Need
Measuring devices of wave action of other types, including proton neutron electronic and some kind of electric ones of another level

If yes mass grow and intensification of frequency go up even radio ; danger bio mass must go down
If exp unstoppable then run ;; dusting freezing add dry ice and red fire bottle moose, foam, powder, dusting, ashing , fire
No gas, no water, no demand, no carbondioxyde








Example
BODY
 START
   :::import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as npfrom sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn import metrics
from sklearn.metrics import r2_scoredf = pd.read_excel('Pulse_Data_2021_NO_NULL.xlsx', ) #do

Синий: i(t) = I_msin(wt)
Красный: i(t) = I_msin(wt + \beta)
Для второй формулы (wt + \beta) это фаза переменного тока, а \beta — это начальная фаза. Часто для упрощения расчетов принимают начальную фазу равной нулю.
Значение i(t) в любой момент времени называют мгновенным значением переменного тока. Вообще все эти термины справедливы для любых гармонических сигналов, но раз уж мы обсуждаем переменный ток, то будем придерживаться этой терминологии. Максимальное значение функции sin(x) равно 1, соответственно, максимальная величина тока в нашем случае будет равна I_m — амплитудному значению.
Фазный ток представляет собой ток , протекающий через фазу приемника.;J{\ displaystyle J}
Линия тока ток через линию.;я{\ displaystyle I}
A, B и C — названия трех линий. N — нейтраль в случае соединения звездой. В случае соединения треугольником нейтрали нет.
Если приемник подключен звездой (также называется Y) .;яКзнак равноJГОД{\ displaystyle I _ {\ text {A}} = J _ {\ text {AN}}}
Если ресивер подключен по дельте (также называется ) ,.;;{\ displaystyle \ Delta}яКзнак равно3JABе(-j;6){\ displaystyle I _ {\ text {A}} = {\ sqrt {3}} J _ {\ text {AB}} e ^ {(- j {\ frac {\ pi} {6}})}}

по фазе на 2 /3 радиан;{\ displaystyle \ pi} ( 120  градусов) относительно двух других кабелей

* u — амплитуда сигнала, пиковое напряжение, в вольтах (В),
* ; — импульс сигнала в радианах в секунду (рад;с -1 ), определяемый как ; = 2;;; ; = 2;; / T ; — частота сигнала в герцах (Гц), T — период сигнала в секундах (с).


Basics
Data types.
package basics;
/**
*
* @author Padaboo I.B Aleksandrov
*/
public class DataTypes {

 public static void main(String[] args) {
 DataTypes app = new DataTypes();

 //int 4byte -2147483648 2147483648
 int i = 1;
 //short 2byte -32768 32767
 short s = 1;
 //long 8byte -9223372036854775808 -9223372036854775807
 long l = 1;
 //byte 1byte -128 до 127
 byte b = 1;
 //float 4byte +-3,40282347E+38F
 float f = 0.1f;
 //double 8byte +-1,7976931348623157E+308F
 double d = 0.2f;
 //char
 char c = 'd';
 //boolean true false logical 1/0
 boolean bool = true;
 }
 //public static constatn available in any method in other classes
 //a constant can not be changed
 public static final double con = 0.3f;
}
Math
package basics;
/**
* * @author padaboo I.B Aleksandrov
*/
public class JavaMath {
 public static void main(String[] args) {
 /**
 Math.abs (n) - returns the unit number n.
 Math.round (n) - returns an integer closest to a real number n (rounds n).
 Math.ceil (n) - returns the closest number to the number n to the right of zero fractional part
(e.g., Math.ceil (3.4) returns a result of 4.0).
 Math.cos (n), Math.sin (n), Math.tan (n) - trigonometric function sin, cos tg and the argument n,
indicated in radians.
 Math.acos (n), Math.asin (n), Math.atan (n) - inverse trigonometric functions return the angle in
radians.
 Math.toDegrees (n) - a measure of returns-degree angle in radians n.
 Math.toRadians (n) - returns radian measure of an angle in degrees n.
 Math.sqrt (n) - returns the square root of n.
 Math.pow (n, b) - returns the value of the power function of degree n b, the base and the
exponent may be real.
 Math.log (n) - returns the natural logarithm of n.
 Math.log10 (n) - returns the logarithm of n.
 */
 System.out.println(Math.abs(-2.33));
 System.out.println(Math.round(Math.PI));
 System.out.println(Math.round(9.5));
 System.out.println(Math.round(9.5-0.001));
 System.out.println(Math.ceil(9.4));
 double c = Math.sqrt(3*3 + 4*4);
 System.out.println(c);
 double s1 = Math.cos(Math.toRadians(60));
 System.out.println(s1);
 }
}
Operations
package basics;
/**
*
* @author Padaboo I.B Aleksandrov
*/
public class Operations {

 public static void main(String[] args) {
 Operations app = new Operations();
 /**
 * + sum
 * - subtraction
 * / division
 * * multiplication
 * % remainder of the division
 */
 int x = 1;

 x = x + x;

 System.out.println(x);
 //2

 //x+1
 ++x;
 System.out.println(x);
 //3

 x += 2;
 System.out.println(x);
 //5

 /**
 * Logical operations
 * == equally
 * != not equally
 * <= less or equal
 * => more or equal
 * < less
 * > more
 * && and
 * || or
 */

 boolean result = (x != 1);

 System.out.println(result);
 //true

 result = ((x != 1) && (x == 2));

 System.out.println(result);
 //false

 //ternar (condition) ? expression_1 : expression_2
 //if the expression is true if the first part is done there is no second

 result = x>3 ? true : false;

 System.out.println(result);

 /**
 * byte operations
 * & byte and
 * | byte or
 * ^ excluding or
 * ~ not
 * >> bit shift to the right
 * << bit shift to the left
 */

 /**
 * Priority
 * [] () from right to left
 * !~++--+()new from right to left
 * * / % from left to right
 * + - from left to right
 * << >> >>> from left to right
 * < <= > >= instanceof from left to right
 * == != from left to right
 * & from left to right
 * ^ from left to right
 * | from left to right
 * && from left to right
 * || from left to right
 * ?: from right to left
 * = += -= *= /= %= |= ^= <<= >>= >>>= from right to left
 */

 // null - empty field
 // nan - not a number

 }
}
Constructions
package basics;
/**
*
* @author Padaboo I.B. Aleksandrov
*/
public class Constructions {
 //public, visible inside and outside
 public int pub = 1;
 //private, visible inside
 private int pri = 2;
 //protected, visible inside and in child class
 protected int pro = 3;

 //public static varible
 public static int staticVar = 4;
 //constant
 public final static int finalVar = 4;
 //enum is used as a constant
 enum Modifier {
 PUBLIC,
 PROTECTED,
 PRIVATE,
 ABSTRACT,
 STATIC,
 FINAL,
 TRANSIENT,
 VOLATILE,
 SYNCHRONIZED,
 NATIVE,
 STRICTFP;
 }

 public static void main(String[] args) {
 //local varible of method (funttion)
 int localVarible = 0;

 //create exemplar of class (object) constructions
 Constructions constructions = new Constructions();
 //if condition
 if(1 == 1){
 //true
 } else {
 //false
 }

 //else if
 if (false){
 }else if (false){

 }else {
 //do
 }


 //for: repeating cycle with the condition 1
 for(int i=1; i<5; i++){
 System.out.println("i is: " + i);
 }

 //for: repeating cycle with the condition 2
 int[] numbers = {1,2,3,4,5,6,7,8,9,10};
 for (int item : numbers) {
 System.out.println("i is: " + item);
 }

 //while true
 int n = 5;
 while (n > 0) {
 System.out.println("while " + n);
 n--;
 }
 //do while true
 int i = 0;
 do{
 System.out.print ("while " + ++i);
 } while (i < 10);

 //continue skip iteration/next

 //new create a new object
 String s = new String();

 //selection operator
 int month = 3;
 switch (month) {
 case 1: s = "1";
 break;
 case 2: s = "2";
 break;
 case 3: s = "3";
 break;
 case 4: s = "4";
 default: break;
 }
 //print case result
 System.out.println(s);
 //private varible
 System.out.println(constructions.pri);
 //public varible
 System.out.println(constructions.pub);
 //protected varible
 System.out.println(constructions.pro);
 System.out.println(staticVar*2);

 //call function from object
 System.out.println(constructions.func());
 //call overload function func with 2 arguments
 System.out.println(constructions.func(2,2));

 //call enum Modifier
 Modifier variableModifier = Modifier.PUBLIC;
 System.out.println(variableModifier);

 }

 /**
 * private function return type int, no arguments
 */
 private int func(){
 //do
 return 128;
 }

 /**
 * function overloading with 2 arguments
 * @param a
 * @param b
 * @return int
 */
 private int func(int a,int b){
 return a*b;
 }
}
Strings
package basics;
/**
*
* @author Padaboo I.B. Aleksandrov
*/
public class Strings {
 public static void main(String[] args) {
 String j = "jmonkey";
 String e = "engine";

 //concatenation

 System.out.println(j+3);
 //jmonkey3

 System.out.println(j + " " + e);

 //equals ==

 System.out.println(j.equals("jmonkey"));

 //length
 System.out.println(j.length());

 //substring start end
 System.out.println(j.substring(0,3));
 //jmo

 //first symbol
 char first = j.charAt(0);
 //j
 System.out.println(first);
 char arr[] = {'j','m','3'};

 String fromchar = new String(arr);

 System.out.println(fromchar);

 //JDK API String
 }
}
Arrays
package basics;
import java.util.ArrayList;
/**
* Java arrays
* @author Padaboo I.B Aleksandrov
*/
public class Arrays {
 public static void main(String[] args) {
 //create array of integer size 3
 int[] a = new int[3];

 a[0] = 1;
 a[1] = 2;
 a[2] = 3;

 int[] b = {1,2,3};

 for(int j = 0; j <= b.length - 1; j++) {
 System.out.println(b[j]);
 }

 //multidimensional array
 int[][] ab = new int[6][4];
 //int[][] ab = {{2,3},{2,2}};

 for(int i=0; i<ab.length; i++) {
 for(int j=0; j<ab[i].length; j++) {
 ab[i][j] = (int)(Math.random()*10);
 }
 }

 //array of objects
 Car[] cars = new Car[10];

 //array list
 ArrayList<Car> carList = new ArrayList<Car>();

 int i = 0;
 //add objects to array list
 while(i< 3){
 carList.add(new SportCar());
 }

 Car[] carsArray = new Car[carList.size()];

 carList.toArray(carsArray);
 //add(n,e);
 //remove(n);

 }
}
Collections
package basics;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Queue;
import java.util.Set;
import java.util.TreeMap;
/**
* LinkedList HashMap LinkedHashMap TreeMap
* * @author Padaboo I.B. Aleksandrov
*/
public class Collections {
 public static void main(String[] args) {
 Collections app = new Collections();

 //app.LinkedListExample();
 //app.HashMapExample();
 //app.LinkedHashMap();
 //app.TreeMapExample();
 app.QueueExample();
 }

 private void LinkedListExample(){
 //Java LinkedList
 List<String> list = new LinkedList<String>();
 list.add("player 1");
 list.add("player 2");
 list.add("player 3");
 Iterator iter = list.iterator();

 while(iter.hasNext()){
 System.out.println(iter.next());
 }

 for(int num=0; num<list.size(); num++){
 System.out.println(list.get(num));
 }

 for (Iterator<String> it = list.iterator(); it.hasNext();) {
 String str = it.next();
 System.out.println(str);
 }

 list.get(0);

 list.set(1,"Monster");

 list.remove(0);

 list.size();
 }

 private void HashMapExample(){
 //java HashMap Example
 Map<String, Car> hashmap = new HashMap<String, Car>();

 hashmap.put("id1", new SportCar());
 hashmap.put("id2", new SportCar());
 hashmap.put("id3", new SportCar());

 SportCar iterCar;

 for (Map.Entry entry : hashmap.entrySet()) {
 iterCar = (SportCar)entry.getValue();
 System.out.println("key: " + entry.getKey() + " val: "+ iterCar.getSpeed());
 }
 }

 private void LinkedHashMap(){
 //Java LinkedHashMap Example
 LinkedHashMap<Integer, String> map =
 new LinkedHashMap<Integer, String>();
 map.put(1, "Java");
 map.put(2, "Jmonkey");
 map.put(3, "3d");
 map.put(4, "Convas");
 map.put(5, "ClientServer");
 //map.get(4);

 Set set = map.entrySet();

 Iterator iterator = set.iterator();
 Map.Entry me;
 while(iterator.hasNext()) {
 me = (Map.Entry)iterator.next();
 System.out.println("key: "+ me.getKey() + " val: "+me.getValue()+"\n");
 }
 }

 private void TreeMapExample(){
 TreeMap<Integer, String> tmap =
 new TreeMap<Integer, String>();
 tmap.put(1, "Blender");
 tmap.put(3, "Ogre3D");
 tmap.put(70,"Animation");
 tmap.put(4, "Shaders");
 for (Entry<Integer, String> entry : tmap.entrySet()) {
 System.out.println(entry.getKey() + " - " + entry.getValue());
 }
 }

 private void QueueExample(){
 Queue<String> qe=new LinkedList<String>();
 qe.add("Java Oracle");
 qe.add("Ubuntu Linux");
 qe.add("Convas 3d");
 for (String iteratorValue : qe) {
 System.out.println("Queue Next Value :"+iteratorValue);
 }
 }
}
Try cahtch
package basics;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* * @author padabo I.B Aleksandrov
*/
public class ExceptionTryCatchFinally {
 public static void main(String[] args) {
 try{
 throw new Exception("Simple Exception");
 }catch(Exception e){
 Logger.getLogger(IO.class.getName()).log(Level.SEVERE, null, e);
 System.out.println(e.getMessage());
 }finally{
 System.out.println("Finally");
 }
 }
}
Objects
Abstarct car
package basics;
/**
* Abstract class (have abstract methods)
* @author Padaboo I.B. Aleksandrov
*/
public abstract class Car{
 protected int speed;
 protected String color;

 /**
 * constructor
 */
 public Car(){
 speed = 50;
 }
 /**
 * overload
 * @param color
 */
 public Car(String color){
 this.color = color;
 }
 /**
 * A common method for all heirs
 */
 public void drive(){
 //do drive
 }
 /**
 * a method that must be implemented in all heirs
 */
 abstract boolean painting(String newColor);
 /**
 *
 * @return int speed
 */
 public int getSpeed(){
 return speed;
 }
 /**
 * a method that must be implemented in all heirs
 */
 abstract void acceleration(int a);
}
Sport car
/*
*/
package basics;
/**
* Heir class abstract class car
* @author Padaboo I.B. Aleksandrov
*/
public class SportCar extends Car {
 @Override
 boolean painting(String newColor) {
 color = newColor;
 return true;
 }
 public void acceleration(int a) {
 speed = speed * a;
 }
}
/*
*/
package basics;
/**
* Heir class abstract class car
* @author Padaboo I.B. Aleksandrov
*/
public class SportCar extends Car {
 @Override
 boolean painting(String newColor) {
 color = newColor;
 return true;
 }
 public void acceleration(int a) {
 speed = speed * a;
 }
}
package basics;
/**
* Objects abstract extends protected
* @author padaboo I.B Aleksandrov
*/
public class Objects {
 public static void main(String[] args) {

 Car sportCar = new SportCar();

 System.out.println(sportCar.getSpeed());

 sportCar.acceleration(20);

 System.out.println(sportCar.getSpeed());

 }
}
Reflections
package basics;
import java.lang.reflect.Field;
/**
*
* @author padaboo I.B. Aleksandov
*/
public class Reflection {

 public static void main(String[] args) throws ClassNotFoundException, InstantiationException,
IllegalAccessException {
 //get class name
 SportCar sc = new SportCar();

 String name = sc.getClass().getName();

 System.out.println(name);

 //object from class name
 Object rsc = (Object) Class.forName(name).newInstance();

 System.out.println(rsc.toString());

 //get class
 Class csc = SportCar.class;

 System.out.println(csc);

 //get fields of super class
 Field[] fields = SportCar.class.getSuperclass().getDeclaredFields();
 for (Field field : fields) {
 System.out.println(field.getName());
 }
 //https://docs.oracle.com/javase/tutorial/reflect/
 }
}
Parametrization
package basics;
/**
* Java Parametrizations generic inner class example
* @author padaboo I.B. Aleksandrov
*/
public class Parametrization{

 public static void main(String[] args) {
 Parametrization app = new Parametrization();

 app.genericTest();

 }

 private void genericTest(){
 GenericObj<String,Car> g = new GenericObj<String,Car>("Test",new SportCar());
 }

 class GenericObj<String,T extends Car> {
 public String name;
 public T car;
 private GenericObj(String str, T carObj) {
 car = carObj;
 name = str;
 }
 }
}
Class path
package basics;
import java.io.File;
/**
* * @author padaboo I.B Aleksandrov
*/
public class ClassPath {
 public static void main(String[] args) {
 System.getProperty("java.class.path");
 String classpath = System.getProperty("java.class.path");
 String[] classpathEntries = classpath.split(File.pathSeparator);
 for(String s: classpathEntries){
 System.out.println(s);
 }
 }
}
IO
/*
 <?xml version="1.0" encoding="UTF-8"?>
 <root>
 <rows>
 <item name="player1" level="20" />
 <item name="player2" level="15" />
 <item name="player3" level="10" />
 </rows>
 <system fps="60"/>
 </root>
*/
package basics;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
/**
* * IO Java read file write file sample;
* @author Padaboo I.B. Aleksandrov
*/
public class IO {
 String fileName = "iotest.xml";
 String content;
 String absoluteFilePath;
 String workingDirectory;

 public static void main(String[] args) throws IOException {
 IO app = new IO();
 app.workingDirectory = app.getworkingDirectory();
 app.absoluteFilePath = app.workingDirectory + app.fileName;

 app.content = app.readFile(app.absoluteFilePath);
 app.content += "append";

 app.writeFile(app.absoluteFilePath,app.content);
 }

 private String getworkingDirectory(){
 return System.getProperty("user.dir") + File.separator + "src"+File.separator+
"basics"+File.separator;
 }

 private String readFile(String path) throws IOException{
 BufferedReader br = new BufferedReader(new FileReader(path));
 StringBuilder sb = new StringBuilder();
 String line = br.readLine();
 while (line != null) {
 sb.append(line);
 sb.append(System.lineSeparator());
 line = br.readLine();
 System.out.println(line);
 }

 br.close();
 return sb.toString();
 }

 private void writeFile(String path,String str) throws IOException{
 File file = new File(path);
 FileWriter writer = new FileWriter(file);
 writer.write(str);
 writer.flush();
 writer.close();
 }
}
XML
/*
<?xml version="1.0" encoding="UTF-8"?>
<root>
 <rows>
 <item name="player1" level="20" />
 <item name="player2" level="15" />
 <item name="player3" level="10" />
 </rows>
 <system fps="60"/>
</root>
*/
package basics;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
/**
* * * Xml Xpath sample
* @author padaboo I.B. Aleksandrov
*/
public class XmlSample {

 public static void main(String[] args) throws IOException, ParserConfigurationException,
SAXException {
 String filePath = XmlSample.getworkingDirectory() + "iotest.xml";

 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
 factory.setNamespaceAware(true);
 DocumentBuilder builder;
 org.w3c.dom.Document doc = null;

 builder = factory.newDocumentBuilder();
 doc = (org.w3c.dom.Document) builder.parse(new File(filePath));
 NodeList ltemsList = doc.getElementsByTagName("item");

 for(int i=0; i<ltemsList.getLength() ; i++) {
 Node itemNode = ltemsList.item(i);

 }
 }

 public static String getworkingDirectory(){
 return System.getProperty("user.dir") + File.separator + "src"+File.separator+
"basics"+File.separator;
 }
}
System
Command line
package sys;
/**
* * @author padaboo I.B Aleksandrov
*/
public class CommandLineSample {
 public static void main(String[] args){
 if (args.length > 0) {
 for (String s: args) {
 System.out.println(s);
 }
 }
 }
}
Execute
package sys;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* * @author padaboo I.B. Aleksandrov
*/
public class ExecuteSample {
 public static void main(String[] args) throws IOException, InterruptedException {
 Process p = Runtime.getRuntime().exec("pwd");
 p.waitFor();
 BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
 String line = "";
 while ((line = reader.readLine()) != null) {
 System.out.println(line);
 }
 }
}
Key press
package sys;
import java.util.Scanner;
/**
* * @author padaboo I.B. Aleksandrov
*/
public class InScannerKeyPress {
 public static void main(String[] args) {
 Scanner keyboard = new Scanner(System.in);
 boolean exit = false;

 while (!exit) {
 String input = keyboard.nextLine();
 if(input != null) {
 System.out.println("Your input is : " + input);
 if ("quit".equals(input)) {
 exit = true;
 } else if ("x".equals(input)) {
 }
 }
 }
 keyboard.close();
 }
}
Native Sample
package sys;
/**
*
* * https://en.wikipedia.org/wiki/Java_Native_Interface
* @author padaboo I.B. Aleksandrov
*/
public class NativeSample {

 public native void displayHelloWorld();
 static{
 System.loadLibrary("hello");
 }
 public static void main(String[] args){
 /**
 javac NativeSample.java
 #; :::javah -classpath . NativeSample
 #;  ::::gcc -shared -fPIC -I $JAVA_HOME/include -I #; :::::JAVA_HOME/include/linux Hello.cpp -o hello.so
 #; java -classpath . -Djava.library.path=. HelloWorld
 Hello World!*/
 new #NativeSample#() #displayHelloWorld(); 
 }
}
/**
#include  "HelloJNICppImpl.h"
#include  <iostream>
using namespace std:
void sayHello () {cout << "Hello World from C++!" <<endl;
 #return
}
*/
/**
#ifndef  _HELLO_JNI_CPP_IMPL_H
#define  _HELLO_JNI_CPP_IMPL_H
#ifdef  __cplusplus
 #extern  #c  #{
#endif
 #void  sayHello ()
#ifdef  __cplusplus
 #} @/ @//
#endif
#endif
#/
Threads
Thread
#package  threads;
/##
#// * #Java  Threads
* @author Padaboo I.B. Aleksandrov
#//
public class ThreadSample{

 public static void main(String[] args) {
 ThreadSample app = new ThreadSample();
 app.threadRun();
 }

 class MyThread extends Thread{

 @Override
 public void run() {
 System.out.println("Run");
 }
 }

 private void threadRun(){
 MyThread t = new MyThread();
 t.start();
 }
}
Thread Sleep
package threads;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* * Java thread sleep
* @author Padaboo I.B. Aleksandrov
*/
public class ThreadSleepSample {
 public static void main(String[] args) {
 ThreadSleepSample app = new ThreadSleepSample();
 app.threadSleepTest();
 }

 private void threadSleepTest(){
 Runnable r;
 r = new Runnable() {
 public void run() {
 for (int i = 0; i < 9; i = i + 1){
 try {
 System.out.println("Run " + i);
 Thread.sleep(500);
 } catch (InterruptedException ex) {
null, ex);
 }
 }
 }
 };
 Thread t = new Thread(r);
 t.start();
 }
}
Thread Lock
package threads;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
/**
* * Java lock sample
* @author padaboo I.B. Aleksandrov
*/
public class ThreadLock implements Runnable{
 private Lock lock;
 public static void main(String[] args){
 ThreadLock app = new ThreadLock();

 }

 @Override
 public void run() {
 try {
 if(lock.tryLock(10, TimeUnit.SECONDS)){
 //do
 }
 } catch (InterruptedException e) {
 e.printStackTrace();
 }finally{
 //unlock
 lock.unlock();
 }
 }
}
Thread Local
package threads;
/**
* Java ThreadLocal example
* * @author Padaboo I.B. Aleksandrov
*/
public class ThreadLocalSample implements Runnable {
 ThreadLocal<String> str = new ThreadLocal<String>(){
 @Override
 protected String initialValue(){
 return new String("Test");
 }
 };;

 public static void main(String[] args){
 ThreadLocalSample app = new ThreadLocalSample();

 Thread t = new Thread(app);
 t.start();
 }
 public void run() {
 System.out.println(str.get());
 }
}
Daemon thread
package threads;
/**
* * Java daemon thread
* @author Padaboo I.B Alelsandrov
*/
public class DaemonThread extends Thread{
 public static void main(String[] args) throws InterruptedException {
 DaemonThread t = new DaemonThread();
 t.setDaemon(true);
 t.start();

 try {
 Thread.sleep(3000);
 } catch (InterruptedException x) {}
 }

 @Override
 public void run() {
 while (true) {
 System.out.println("Daemon Run ");
 try {
 sleep(500);
 } catch (InterruptedException e) {
 // handle exception here
 }
 }
 }
}
Runnable
package threads;
/**
* Java runnable threads
* @author padaboo I.B Aleksandrov
*/
public class RunnableSample implements Runnable{

 public static void main(String[] args) {
 RunnableSample run = new RunnableSample();
 Thread t = new Thread(run);
 t.start();
 }
 public void run() {
 int i = 1;
 while(i<=10){
 System.out.println(i);
 i++;
 }
 }
}
Runanble handler
package threads;
/**
* Java Runnable handler
* @author Padaboo I.B. Aleksandrov
*/
public class RunnableHandler {

 public static void main(String[] args) {
 RunnableHandler app = new RunnableHandler();
 app.hadlerTest();
 }

 public void hadlerTest(){
 Runnable handler = new Runnable(){
 public void run() {
 System.out.println("Run");
 }
 };

 Thread t = new Thread(handler);
 t.start();
 }
}
Thread isInterrupted
package threads;
/**
* * @author padaboo I.B. Aleksandrov
*/
public class ThreadInterrupted extends Thread{
 public static void main(String[] args){
 ThreadInterrupted app = new ThreadInterrupted();
 app.start();
 }

 public void run( ) {
 int i = 0;
 while (!isInterrupted( )) {
 System.out.println("i:"+i);
 i++;
 }
 }
}
Thread executors
package threads;
import java.util.concurrent.Executor;
/**
* * Java Thread Executors
* @author padaboo I.B. Aleksandrov
*/
public class ExecutorsSample {

 public static void main(String[] args) {
 ExecutorsSample app = new ExecutorsSample();
 app.executorsTest();
 }

 private void executorsTest(){
 Executor executor = new Executor() {
 public void execute(Runnable command) {
 command.run();
 }
 };

 Runnable command = new Runnable() {
 public void run() {
 System.out.println("Run");
 }
 };

 executor.execute(command);
 }
}
Thread executors services
package threads;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Java Executor ExecutorService
* * @author Padaboo I.B. Aleksandrov
*/
public class ExecutorsServicesSample {
 ExecutorService pool = Executors.newFixedThreadPool(2);
 public static void main(String[] args) {
 ExecutorsServicesSample app = new ExecutorsServicesSample();
 app.ExecutorsServicesTest();
 }

 private void ExecutorsServicesTest(){
 pool.execute(new Handler(1));
 pool.execute(new Handler(2));
 pool.shutdown();
 }

 class Handler implements Runnable {
 private final int number;
 Handler(int number) { this.number = number; }
 public void run() {

 System.out.println("Thread" + this.number);
 }
 }
}
Thread Callable Future
package threads;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
/**
* Java Callable Future Sample
* * @author padaboo I. B. Aleksandrov
*/
class CallableFutureSample {
 public static void main(String[] args) throws ExecutionException, InterruptedException{
 CallableFutureSample app = new CallableFutureSample();
 app.callableTest();
 }

 private void callableTest() throws ExecutionException, InterruptedException{
 ExecutorService ex = Executors.newCachedThreadPool();

 CallableThread call = new CallableThread();

 Future<Integer> future = ex.submit(call);
 System.out.println(future.get());

 ex.shutdown();
 }

 class CallableThread implements Callable<Integer>{
 public Integer call() throws Exception {
 int i = 1;
 return i;
 }
 }

}
Thread Count Down Latch
package threads;
import java.util.concurrent.CountDownLatch;
/**
* @author padaboo I.B. Aleksandrov
*/
public class CountDownLatchSample {

 public static void main(String args[]) throws InterruptedException {
 CountDownLatchSample app = new CountDownLatchSample();
 app.CountDownLatchTest();
 }

 private void CountDownLatchTest() throws InterruptedException{
 CountDownLatch startSignal = new CountDownLatch(1);
 CountDownLatch doneSignal = new CountDownLatch(2);
 for (int i = 0; i < 2; ++i) // create and start threads
 new Thread(new Worker(startSignal, doneSignal)).start();
 startSignal.countDown(); // let all threads proceed
 doneSignal.await();
 }
class Worker implements Runnable {
 private final CountDownLatch startSignal;
 private final CountDownLatch doneSignal;

 private Worker(CountDownLatch startSignal, CountDownLatch doneSignal) {
 this.startSignal = startSignal;
 this.doneSignal = doneSignal;
 }
 public void run() {
 try {
 startSignal.await();
 doWork();
 doneSignal.countDown();
 } catch (InterruptedException ex) {} // return;
 }
 void doWork() {
 System.out.println("Work");
 }
 }
}
Scheduled Thread Pool
package threads;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
/**
* * @author Padaboo I.B. Aleksandrov
*/
public class ScheduledThreadPoolSample {
 public static void main(String[] args) throws InterruptedException {
 ScheduledThreadPoolSample app = new ScheduledThreadPoolSample();

 }

 private void ScheduledTest() throws InterruptedException{
 ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(5);


 for(int i=0; i<3; i++){
 Thread.sleep(1000);
 WorkerThread worker = new WorkerThread("Run");
 scheduledThreadPool.schedule(worker, 10, TimeUnit.SECONDS);
 }

 //add some delay to let some threads spawn by scheduler
 Thread.sleep(30000);

 scheduledThreadPool.shutdown();
 while(!scheduledThreadPool.isTerminated()){
 //wait for all tasks to finish
 }
 System.out.println("Finished all threads");
 }

 public class WorkerThread implements Runnable{
 private String command;
 public WorkerThread(String str){
 this.command = str;
 }
 @Override
 public void run() {
 processCommand();
 }
 private void processCommand() {
 try {
 Thread.sleep(5000);
 } catch (InterruptedException e) {
 e.printStackTrace();
 }
 }
 @Override
 public String toString(){
 return this.command;
 }
 }
}
Thread synchronized
package threads;
/**
* Java syncronized
* @author Padaboo I.B. Aleksandrov
*/
public class ThreadSyncSample{
 Sync synchObj;

 public static void main(String[] args){
 ThreadSyncSample app = new ThreadSyncSample();
 app.syncTest();
 }

 private void syncTest(){
 synchObj = new Sync();

 Runnable r = new Runnable() {
 public void run() {
 //synchronized method
 synchObj.plus();
 System.out.println("synchronized method" + synchObj.getJ());
 }
 };
 Thread t = new Thread(r);
 t.start();
 }
 class Sync{
 int j = 1;

 public synchronized void plus(){
 j++;
 }

 public synchronized int getJ(){
 return j;
 }

 public void syncTest(){
 synchronized (this) {
 System.out.println("notifyAll");
 this.notifyAll();
 }
 }
 }
}
Net
Client socket
package net;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Socket;
/**
* * @author Padaboo I.B. Aleksandrov
*/
public class ClientSocketSample {
 public static void main(String[] args) throws Exception {

 Socket s = new Socket("127.0.0.1", 8080);
 BufferedReader input =
 new BufferedReader(new InputStreamReader(s.getInputStream()));

 String answer = input.readLine();
 System.out.println(answer);
 System.exit(0);
 }
}
Server socket
package net;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Date;
/**
* * @author padaboo I.B. Aleksandrov
*/
public class ServerSocketSample {
 public static void main(String[] args) throws Exception {
 ServerSocket listener = new ServerSocket(8080);
 try {
 while (true) {
 Socket socket = listener.accept();
 try {
 PrintWriter out =
 new PrintWriter(socket.getOutputStream(), true);
 out.println(new Date().toString());
 } finally {
 socket.close();
 }
 }
 }
 finally {
 listener.close();
 }
 }
}
Thread server
package net;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Thread Server messages
* @author Padaboo I.B. Aleksandrov
*/
public class ThreadServerSample {
 public static void main(String[] args){
 ThreadServerSample app = new ThreadServerSample();
 try {
 app.startUp();
 } catch (IOException ex) {
null, ex);
 }

 }

 private void startUp() throws IOException{
 ServerSocket sock = new ServerSocket(8080);
 int i = 1;

 while(true){
 Socket in = sock.accept();
 Runnable r = new ThreadServer(in);
 Thread t = new Thread(r);
 t.start();
 }
 }

 class ThreadServer implements Runnable{
 Socket in;

 private ThreadServer(Socket in) {
 this.in = in;
 }

 public void run() {
 try {
 InputStream inStream = in.getInputStream();
 OutputStream outStream = in.getOutputStream();

 Scanner in = new Scanner(inStream);

 PrintWriter out = new PrintWriter(outStream);

 while(in.hasNextLine()){
 String line = in.nextLine();
 out.println(line);
 }

 } catch (IOException ex) {
null, ex);
 }
 }
 }

}
Url sample
package net;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
/**
* * @author padaboo I.B. Aleksandrov
*/
public class UrlSample {

 public static void main(String[] args) throws Exception {
 URL oracle = new URL("http://192.168.0.101/");
 BufferedReader in = new BufferedReader(
 new InputStreamReader(oracle.openStream()));
 String inputLine;
 while ((inputLine = in.readLine()) != null)
 System.out.println(inputLine);
 in.close();
 }
}
Mysql jdbc
package jdbcmysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
/**
* jdbc mysql example (have a dump file)
* Connector http://dev.mysql.com/downloads/connector/j/
* Statement * Prepared * @author Padaboo I.B Aleksandrov
*/
#public #class #MysqlConnectSample {}

 #public #static #void #main (String[] args) #throws #Exception {}
 #Connection #police = #report
#Driver #Manager #Connection

 #String #query = #SELECT * FROM jdbctest.Users;";
 
 #execute #mysql #procedure
 #CallableStatement #stmt;
 #Statement #stmt = #conn #create #Statement()
 #Result #Set  #rs = #stmt #execute #Query(query)
 #stmt #execute #Update(sql);
 #Result #Set #Meta #Data #md = #rs #get #MetaData();

 #System.out.println("count " + md.getColumnCount());

 #while  (rs.next()) {
 #Microsoft  id = rs.getInt("id");
 System.out.println(id);
 }
 rs.close();
 }
}
#Dump
CREATE DATABASE `jdbctest` CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE TABLE `jdbctest`.`Users` (
 `id` INT NOT NULL AUTO_INCREMENT,
 `name` VARCHAR(128) NULL,
 `session_key` VARCHAR(128) NULL,
 `email` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' NULL,
 `password` VARCHAR(128) NULL,
 `activation_key` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' NULL,
 PRIMARY KEY (`id`));
INSERT INTO `jdbctest`.`Users` (`name`, `session_key`, `email`, `password`, `activation_key`)
VALUES ('ivan2', 'asdasddd', 'jetananas@yandex.ru', 'asdasad', 'asaadads');
INSERT INTO `jdbctest`.`Users` (`name`, `session_key`, `email`, `password`, `activation_key`)
VALUES ('ivan1', 'asdasddd', 'jetananas@yandex.ru', 'asdasad', 'asaadads');



#Installation
Black can be installed by running pip install black. It requires Python 3.7+ to run. If you want to format Jupyter Notebooks, install with pip install "black[jupyter]".
If you can't wait for the latest hotness and want to install from GitHub, use:
#Start :
 #BODY :
   ::pip install git+https://github.com/psf/black #do

#Usage
To get started right away with sensible defaults:
black {source_file_or_directory}
You can run Black as a package if running it as a script doesn't work:
    #CONTINUE:
     :::python -m black {source_file_or_directory} #do

//
Pp  nypd phd learner profile check pidd piddo piddo pi pi pi
Algorithm
Stand up and go
Way search middle
Research
 






Набор примеров составленных из книг и документации. PDF + Исходники
Java books and internet samples by padaboo I.B Aleksandrov



PDF
Исходники
Java примеры из книг и документации
Java
*
* Теги: java
* Хабы: Java
* Религия: Jawo
* MAP
*



Discrete math coding structure


                578845682

A 2
B 7
C 2
D 3
E  3
F  3
G 4
H 4
i 4
J 5
K 5
L 5
M 6
N 6
O 6
P 7
Q 7
R 7
S 7
T 8
U 8
V 8
W 9
X 9
Y 9
Z 9


Example coding hp and regonisation cell company country code connected to symbols coding analog language


Рецензии