Sunum yükleniyor. Lütfen bekleyiniz

Sunum yükleniyor. Lütfen bekleyiniz

JAVA Programcılığı 1.1.1 Ali R+ SARAL. Ders Planı 1.1.1 •JDEV Menüler •Hello World •Jdev kütüphaneleri •JDEV’de dosya siliş •JDEV’de application import.

Benzer bir sunumlar


... konulu sunumlar: "JAVA Programcılığı 1.1.1 Ali R+ SARAL. Ders Planı 1.1.1 •JDEV Menüler •Hello World •Jdev kütüphaneleri •JDEV’de dosya siliş •JDEV’de application import."— Sunum transkripti:

1 JAVA Programcılığı 1.1.1 Ali R+ SARAL

2 Ders Planı 1.1.1 •JDEV Menüler •Hello World •Jdev kütüphaneleri •JDEV’de dosya siliş •JDEV’de application import

3 Ders Planı 1.1.1 •Kurs kitabının Tanıtımı •Örnekler •Data and Variables – Veri ve Değişkenler

4 WEBEXin Tanıtımı •Participants penceresi – el kaldırmak •Chat penceresi – belirli kişiye mesaj yazmak •Belirli aralarla sorulara izin verilecek •El kaldırmışsanız, hoca size söz verebilir •Mikrofonunuz varsa mikrofonla yoksa chat ile sorunuzu sorarsınız

5 Kurs Ortamının Tanıtımı •http://www.cizgi-tagem.org/e-kampus/webex/http://www.cizgi-tagem.org/e-kampus/webex/

6 Ekibin Tanıtımı •http://www.cizgi-tagem.org/team/http://www.cizgi-tagem.org/team/ •Sunucu :Ali Riza SARAL •http://www.cizgi-tagem.org/team/page.aspx?key=arsaralhttp://www.cizgi-tagem.org/team/page.aspx?key=arsaral •Host: Erman ÜRET

7 JDEV tanıtımı •Dokümantasyon Bölümünden Download ediniz •http://www.cizgi-tagem.org/e-kampus/webex/documents.aspx?id=4http://www.cizgi-tagem.org/e-kampus/webex/documents.aspx?id=4 •250MB büyüklüğünde •Download bittikten sonra sıkıştırılmış dosyayı açınız. •Ortaya çıkan directory(kütüphane) içinde en dipte JDEV (tüten kahve ikonlu) exesi vardır. •Exeyi tıklarsanız JDEV çalışır. •JDEV’in sağlıklı çalışması için JAVAHOME environment var ve system path’i set edilmelidir.

8 JDEV menuler 0 •File •Edit •View •Search •Navigate •Run –Debug »Source –Refactor »Versioning –Tools »Window •Help »Samples

9 JDEV menuler 1 •File menüsü New Open Reopen Close Closeall Save Saveas Saveall Import Export Erase from Disk …

10 JDEV menuler 2 •Edit menüsü Undo Redo Cut Copy Copypath Paste … Delete Selectall …

11 JDEV menuler 3 •View menüsü Navigators Application Navigator Connection Navigator … Debugger … Run Manager Tasks Window Tool bars …

12 JDEV menuler 4 •Search menüsü Find menuleri Replace menuleri … Incremental Find forward - backward Find in Files Replace in Files

13 JDEV menuler 5 •Navigate menüsü go to last edit ctrl+shift+backspace Run menüsü Run XXX.jpr Run file Make Rebuild …

14 JDEV menuler 6 •Üstüne cursoru koyup F1’e basınız •Help menüsü Table of Contents Full Text Search Index

15 Hello World çalıştırınız •HelloWorld download •New Application oluştur •New Project oluştur •New JAVA class oluştur •Copy paste HelloWorld •RUN et çalıştır

16 JDEV kütüphaneleri •Dışarıdan bakıldığında JDEV nasıl gözüküyor? •JDK •lib •bin •jdev –lib –bin –mywork

17 JDEV’de Dosya siliş •Jdev içinde bir java class yaratın •Daha sonra bu classı silin •Dışarıdan mywork içinde ilgili applicationı bulun •O classı silmemiş olduğunu fark edersiniz •Olumlu ve olumsuz yanı

18 JDEV’de source import •Application Navigator’da App seç •File menüsü import Java source … Web Source

19 Kurs Kitabının tanıtımı •Ivor Horton’s Beginning Java™ 2, •JDK™ 5 Edition •Kurs Yönetim Sistemimizden indirebilirsiniz.

20 Örnekler •Kurs yönetim sistemimizden indirebilirsiniz. •Nasıl çalıştırabilirsiniz? Sıkıştırılmış dosyayı açınız. Bir application yaratınız. Denemek istediğiniz file’ı import ediniz. File’ı make, ya da rebuild yapınız File’ı run ediniz.

21 Data and Variables Veri ve Değişkenler •A variable is a named piece of memory that you use to store information in your Java program - a piece of data of some description. •Each named piece of memory that you define in your program is able to store data only of one particular type. •Explicit data values that appear in your program are called literals. •25, for example, is an integer literal of type int.

22 Data and Variables Veri ve Değişkenler •Naming Your Variables •The name that you choose for a variable is called an identifier. •Java is case-sensitive. • You must not include blanks or tabs in the middle of a name, so Betty May  BettyMay Betty_May. •6Pack;you cannot start a name with a numeric •digit. use sixPack as an alternative.

23 Unicode •all Java source code is in Unicode. •original source code that you create may be ASCII, it is converted to Unicode characters internally •your programs can use French, Greek, or Russian variable names

24 Variables and Types Değişkenler ve Tipleri •Variables and Types •each variable that you declare can store values only of a type consistent with the data type of that variable. •You specify the type of a particular variable by using a type name in the variable declaration.

25 Integer Literals •Any integer literal that you specify as a sequence of decimal digits is of type int by default. Thus 1, -9999, and 123456789 are all literals of type int. •If you want to define an integer literal of type long, you need to append an L to the value. The values 1L, -9999L, and 123456789L are all of type long.

26 Declaring Integer Variables Integer Değişkeni Tanımlamak There are four types of variables that you can use to store integer data. •All of these are signed; that is, they can store both negative and positive values. •The four integer types differ in the range of values they can store, so the choice of type for a variable depends on the range of data values you are likely to need.

27 Declaring Integer Variables Integer Değişkeni Tanımlamak •long bigOne; •long bigOne = 2999999999L; •It is good practice to always initialize your variables when you declare them. int miles = 0, // One mile is 8 furlongs furlongs = 0, // One furlong is 220 yards yards = 0, // One yard is 3 feet feet = 0; •byte luckyNumber = 7; •short smallNumber = 1234;

28 Floating Point Data Types Kayan Nokta Veri Tipleri •float from -3.4E38 to +3.4E38 •doublefrom -1.7E308 to +1.7E308 • Floating Point Literals •the distance from the Earth to the Sun is approximately 149,600,000 kilometers, •more conveniently written as 1.496E8

29 Declaring Floating Variables Kayan Nokta Değişkeni Tanımlamak •double sunDistance = 1.496E8; •float electronMass = 9E-28F; •float hisWeight = 185.2F, herWeight = 108.5F;


"JAVA Programcılığı 1.1.1 Ali R+ SARAL. Ders Planı 1.1.1 •JDEV Menüler •Hello World •Jdev kütüphaneleri •JDEV’de dosya siliş •JDEV’de application import." indir ppt

Benzer bir sunumlar


Google Reklamları