  

int -  . 
str -       "". 
img -  . 
array - . 
char  -      ''
boolean - 
double - 
command -  
resours - 
rms -   

  

< - . 
> - . 
== - . 
!= -  . 
& -  .
|- 
!- . 
>= -  
<= -  
a++;  
a--;  .
  

begin -    .      ,  . 
end. -    .      ,  .
program -     !        java. 
main {} -     . 
: 
   - 

begin
program java; 
main {} 
end. 

var -  .        .          .       ( , ). 
: 
 , - , string-   img-   . 

begin 
program java;
var x:int; 
var string:str; 
var image:img; 
main {} 
end. 
   :
begin
program java;
procedure a();
var m:command;
var c:boolean;
{
}
function int z(int b);
var c:int;
{
c=b-3;
return c;
}

delay (x_int) -   . 
: 

begin 
program java;
var time:int; 
main 
{ 
time=5000; 
delay (time); 
} 
end. 

drawtext (string_str,x_int,y_int) -      string     . 
: 
begin
program java; 
main 
{ 
drawtext ("Hello World",5,5); 
repaint; 
delay (1000); 
} 
end. 

if () then {} else {} -   .   ,    then ,  ,    else. 

if ((a==0)&&(a!=b))||(b==a) then
{
}
else
{
}
for to do {} -  . 
: 

begin 
program java;
var a:int; 
main 
{ 
for a=3 to 18 do 
{ 
drawtext ("Text",34,10*a); 
} 
repaint; 
delay (5000); 
} 
end. 

repaint -  . 

  

plot (x_int,y_int) -       . 
setcolor (R_int,G_int,B_int) -    RGB . 
: 

begin 
main 
{ 
setcolor (255,0,0); 
drawtext ("Text",10,30); 
setcolor (0,255,0); 
drawtext ("Text",11,31); 
setcolor (0,0,255); 
drawtext ("Text",12,32); 
repaint; 
delay (10000); 
} 
end. 

drawline (x1_int,y1_int,x2_int,y2_int) -      1  1    2  2. 
drawrect (x_int,y_int,w_int,h_int) -         ,  w,  h. 
setstyle (x_int) -     
0  
1 
filltriangle(int a,int b,int c,int d,int e,int f); -   .
fillrect (x_int,y_int,w_int,h_int) - 
loadimage (a_img,name_text) -      . 
drawimage (a_img,x_int,y_int) -      ,       .
ST.create_frames(String,int h,int v)- ,  String-  , int h-  , int v-  ,    .
ST.create(String s)
    
s -     
  
ST.set_position(int i, int j, int k)
  ,   -    
ST.set_visible(int i, int j)
  
  1-  0 -  
ST.collides_with(int idx, int sprite,int pixelLevel) -     
ST.
paint(int idx) -   ( )
ST.init(int i) -  
i-    
 

ST.move(int i, int j, int k)
  
ST.
append(int i)
 
 ST.remove(int i) -  
ST.next_frame(int i)    
 

procedure name_procedure(vhod_parametr); {} -     . 
: 

begin 
program java;
var i:int; 
procedure paint(str pr); 
{ 
drawtext (pr,30,15); 
} 
main 
{ 
paint(); 
repaint; 
delay (3000); 
} 
end. 


function tip_vosvarata ima_funccii(vhod parametr);
{   
return znachenie;
}
  ,         .              .   int       double      :  
function double a();
{
return 2;
}

function double a();
{
return 3.5;
}
         int   double      .    .         :  
procedure primer();
var a:int;
var b:double;
{
//       double       .
a=(int)(3/4.5+2);
plot(a,(int)(2+b));
}
}

 return        .
     : 
   : 
Lib_jsr75i.write_file ("C:/other/", "text!");
   1  10: 
for a=1 to 10 do 
{ 
 .. 
} 
 
 
repeat; 
  
until a==5;  
      for  repeat   break; 

getkey1 (a); 
getkey2 (a); 
           
getheight(a)-     .
getwidth()-  .
memclean- .
            ,      newstr 
begin
program java;
var a:str;
main
{
newstr(a,"hello");
drawtext(a,0,0);
newstr(a,a+" midlet.");
drawtext(a,50,0);
repaint;
delay(8000);
}  
                !
 inttostr(a,b);  strtoint(b,a);      !
sin(double peremenaia,double gradus);
cos(double peremenaia,double gradus);
 gradus    .  
torad(double a,double b)-  b       .
todeg(double a,double b)-  b       .
abs(double a,double b)-   b  .
tg(double a,double b)-    .
sqrt(double a,double b)-  .
arccos(double a,double c)-     
arcsin(double a,double c)     
arctg(double a,double c) 
log(double a,double c)-    .
exp(double a,double c)-   .
max(int a,int c,int d)     .
min(int a,int c,int d)-   .(    !) .(    !)
mod(double a,double c,double d)-     .
pi(double a)-      .
tranc(int a,double c)-   .
random(int b,int a)-    b    1  !
lenstr(int b,str a);-   b   !
lenmas(int a,ima_masiva);-     . 
copy(str a,str b,int begin,int end);-     b     ! 
#1 -  J2ME       , ,  Windows.
 ,      "" (commands),
  "" .

,    ,       .
  ,  ( )  .
  (  )   ,
addcommand(command );

    .
  (    Motorola)      ,
     repaint.
 ,   'addCommand2'    .

choiceappendstring(int ,int b,str c);  

       b.
     .

choiceappendstringimage(int a,int b,str c,img d);  

         b.
     .

choicegetselectedindex(int a,int b);  

      -1,
     .

clearform;  

      .

createcommand(command a,str b,int c,int d);

       b.
    .
     d,
    .
 c     .
,   ,     
CM_BACK,       
"" (   -,  ),    ,
    .
c    : 
 8 CM_SCREEN -     
 1  CM_BACK  
 2  CM_CANCEL  
 3  CM_OK  
 4  CM_HELP  
 5  CM_STOP  
 6  CM_EXIT  
 7  CM_ITEM

formaddchoice(int a,str b,int c); 

    .
  ID  .      : 


  1 -        
 
  2 -       


formaddgauge(int a,"",int b,int c) 
b -  ,
c -  .

   ""  .
  ID  .

formaddimage(int a,img b);

   .   ID  .

formaddspace(int a);  

   .
     .
  ID  .

formaddstring(int a,str b);

   ()  .
  ID  .

formaddtextfield(int a,str b,str c,int d,int e);
    . 
  ID   .
  b  ,
   ,
c - ,     ,
d -    ,
   .
e     : 
 
  1 -       
  2 -           
  3 -         
  4 -          
  5 -          (URL)

formgettext(str a,int b);  

 ,      b.
 b     ,
      -    .

formgetvalue(int a,int b);

  ""   b.
 ""    ,   -1.

formremove(int a);

   .

formsettext(int a,str b);  
       a.

formsetvalue(int a,int b);
 

  ""   a.

getclickedcommand(command a);
   .  
gettextboxstring(str a)  

 ,    .

menuappendstring(int a,str b); 

    .
      .

menuappendstringimage(int a,str b,img c);  

      .
      .

menugetselectedindex(int a)  

    .
     ,  -1.

playalertsound;

 ,     (Alert).

removecommand(command a);

    .


setticker(str a); 

    " ".

showtextbox(str a,str b,int c,int d);

a- ,
b-  
c -   
   (TextBox)  .
      
    ( )
      .
d    : 
  1 -       
  2 -           
  3 -         
  4 -          
  5 -          (URL) 
showform-     ,     
showcanvas-     ,     . 
gethour(int a);   
getminute(int a);   
getsecond(int a);   
loadmusic(int a,resours a,str tip, int vol);-        vol    .  tip   .   0     1   .
amr(str tip);
midi(str tip);
wave(str tip);
mp3(str tip);       .  
play(int a);- .  0     1. 
pause(int a);- .     0  1.
stop;-  
setposition(int a,int mil);-       0  1
getposition(int mil);-   
getduration(int dlin);-   
setloopcount(int a);-  
volume(int vol);-  
mute; 
unmute;   mute
  RMS.
       :             .   ,    .                .    ,    ,    ,       . 

  begin
program java;
var rs:rms; 
  var index: int;  
   var    name: str; 
 main
{ 
    //      
     openrms(rs,"names"); 
    addrmsentry(index,rs, "John Smith"); 
    closerms(rs); 

    //   
     openrms(rs,"names"); 
     readrmsentry(name,rs, index); 
    closerms(rs);
} 
  end. 

 addrmsentry(int a,rms rs;str data); 

   'data'   'rs'        -1,   . 
--------------
 closerms(rms rs);  

 .
----------------
 deleterms(str name);  

    'name'.       .       ,     . 
-----------------
 deletermsentry(rms rs;int index);  


       'rs'.      ,     . 

------------------
  getrmssize(int a,rms rs);  

    . 
------------------
 openrms(rms a,str name);  

    .     ,       . 
-------------------
function readrmsentry(str a,rms rs,int index)  

        'rs'   ,       . 



 getchar(char a,str strok,int pos);  

      .     0.   'pos'  , ,   ,      ASCII '0'. 

  .
  ,      JAR      .   ,     : 
  
 
  
  openresource   
 
 
 
  closeresource  
 
  readbyte   
 
  readline   
 
   
  
 
  
 
  
: 

begin  var res   : resource; 
 var     byte  : int; 
   var   line  : str; 
    var  index : integer; 
  
      main
{
openresource(res,"/data.txt"); 
    
      if (res!=null) then
{
           readbyte(byte,res); 
      readline(line,res); 
       
          closeresource(res); 
      }
 }      
      showform; 
       formaddstring(index,"Byte is: " + char(byte)); 
      formAddString(index,"Line is: " + line); 
      delay(1000); 
 }
end.  

-------------------------
 closeresource( resource res);  

  . 
-------------------------
 openresource(resource a, str nane)  

  ,   JAR- .      JAR-,   " ->  ". 

begin
program java;
var res   :resource; 
 var   byte  : int; 
 var   line  : str; 
   var index : int; 
  
 main
{      openresource(res,"/data.txt"); 
    
      if (res!=null) then 
      { 
           readbyte(byte,res); 
      readline(line,res); 
       
          closeresource(res); 
      }
       
      showForm; 
       formaddstring(index,"Byte is: " + char(byte)); 
       formaddstring(inex,"Line is: " + line); 
      delay(1000); 
  }
end.  
------------------------
 readbyte(int a, resource res);  

        EOF,          . 
-------------------------
 readline(str a,resource res);  

        .  ,        ,    .       ,   . 
---------------------------
halt; -   . 
get 
   .            newst(a,""+(char)n_simvola); 
array(ima_massiva,tip,razmer);-  .  begin
var a:array int[3];
main
{
array(a,int,[5][9]);
}
.end
getimgheight(int a,img b);
getimgwidth(int a,img b);-      .
getcolornum(int a);-        .
iscolordisplay(boolean a);-  true   ,    false .
getcolorred(int a);
getcolorgreen(int a);
getcolorblue(int a);-      Red, Green, Blue.    
isdigit(boolean a, char b);- true       false.
islowercase(boolean a,char b);- true        false
isuppercase(boolean a,char b);- true      false
eguals(boolean a,str b,str c);- - true       false
touppercase(char a,char b);     
tolowercase(char a,char b);-    .
trim(str a,str b);-         
locase(str a,str b);-    
upcase(str a,str b);-    .
getstrwidth(int a,str b);
getstrheight(int a,str b);-    
setfont(int face,int style,int size);-           |.
fase:
Font.FACE_SYSTEM;
Font.FACE_MONOSPACE;
Font.FACE_PROPORTIONAL;
style:
Font.STYLE_BOLD;
Font.STYLE_ITALIC;
Font.STYLE_UNDERLINED;
size:
Font.SIZE_SMALL;
Font.SIZE_MEDIUM;
Font.SIZE_LARGE;
setdefaultfont;-    .
getkeystates(int a,int b);-      a,   b     getkey1  getkey2.
     :
Canvas.GAME_A_PRESSED
Canvas.GAME_B_PRESSED
Canvas.GAME_C_PRESSED
Canvas.GAME_D_PRESSED
Canvas.DOWN_PRESSED
Canvas.FIRE_PRESSED
Canvas.LEFT_PRESSED
Canvas.RIGHT_PRESSED
Canvas.UP_PRESSED
         , zip ,    , ,         .     .     .   .                .        .           end. .          .            .             .        .             .       a.txt       a.java   . 
  
  D1   
         FullCanvas.(   2      )  D2      .               !
    .       .            a.java (e:/other/java/);
             .(e:/other/class1/)
                    (utf-8).
         .         .        .(e:/other/class1/)
                :(e:/other/class2/).               zip      jar.    .
            FAQ                         .    primer   ,       !           !  ! !
