Object Oriented Programming Java Bangla Book

March 7, 2018 | Author: sabili | Category: N/A
Share Embed Donate


Short Description

Object Oriented Programming Java Bangla Book...

Description

weQwgjøvwni

: : :

E-mail

:

[email protected] [email protected]

: : : :

ISBN

:

:

978-984-8812-91-4

বইটির ববশিষ্ট্য:        

বইটির মাধ্যমম হমে পামর আপনার প্রাগ্রাশমিং এর শুরু। রশেটি শবষয় ধামপ ধামপ সহজ ভামব উপস্থাপন হময়মে । কময়কটি রাকটিকযাল রমজক্ট কমর প্েখামনা হময়মে । গ্রাশিকযাল ইউজার ইন্টারমিইস এর ব্যবহার প্েখামনা হময়মে । প্নটশবনস, প্জশিময়টর এবিং ই-শিপস এর ব্যবহার প্েখামনা হময়মে । বইটি পড়ার জন্য প্কান প্রাগ্রাশমিং জ্ঞান থাকার রময়াজন প্নই । রশেটি অধ্যাময় এবিং শিশভশিমে রচুর রযাকটিস প্রাগ্রাম প্েওয়া হময়মে । শবশ্বশবদ্যালয় এবিং শবশভন্ন শিক্ষা রশেষ্ঠামনর শসমলবাস অনুযায়ী রণীে ।

   

[email protected]|

www.bookbd.info

 

 

Jcreator, Netbeans clipse

  [email protected]

 www.bookbd.info

facebook.com/mmr.sinha [email protected] www.bookbd.info facebook.com/ebookbd

E-

Environment

(Operator & Expresssion) Decesion Making (Loop) (Break & Continue) (Array)

(String)

(Inheritance)

(Graphical User Interface & Netbeans) (Calculator) (Make Invoice) (Age Calculator) (Temparature Converter) (Tic Tac Toe) (Point of Sale System) (Temparature Converter) (Phone Book Record System)

(Application)

(Lexical Elements)

Environment Environment (Java IDE) (JDK) (Command Prompt) (Jcreator) (Netbeans) (Eclipse)

(Setting up your Computer) (Steps in Writing Java Program)

Prompt (Error)

Numerical Data

Rules for Variable Declaration

History) Charcteristic

(JDK & JVM)

(Operator & Expresssion)

(Expresssion) (Operator Types) (Arithmetic Operator) (Assignment Operator) (Comparision Operators) (&&/and) (Logical Operator) (Precedence of Arithmatic Operator) (Bitwise Operator)

Decesion Making : : : : : : :

Conditional Statement If statement Multiple If statement Nested If If----Else Switch

: :

(Loop) : :

: : : :

Loop Type of Loop For Loop (While Loop) (Do-While Loop)

(Break & Continue)

(Break) (Break Syntax) (Continue) Statement

(Array)

(Array) Syntax Intialization

(Two Demensional Array) Vector Vector Syntax Operation

(Method) (Method)

(Syntax) (Method Define) (Calling Method) (Arguments)

(Over Loading)

(Constructor) Constructor (Characteristic) Constructor Constructor

(String)

(String) (String Class) (String Operation)

Console Scanner

(Modifier) (Access Control Modifier) (Non Access Modifier) (public) (Default) (Private) (Protected) (Non Access Modifier)

(Inheritance)

(Inheritance)

(Syntax of Inheritance)

(this) (Type of Inheritance)

(Abstruct)

(Encapsulation)

(Interface)

(Java Pakage) (Client Server Computing) (Java Applet) (Input Stream Class) (Data Stream) (Thread) (Exception) (Swing & GUI) (Graphical User Interface & Netbeans) Netbeans Installation (File Menu) (Edit Menu) (View Menu) (J-Frame Form) Palette (Message Display) (Message Display Using Button Click) (Create User Interface of Calculator) (Calculator) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project)

(Source code of this project) (Run the project) (Make Invoice) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project) (Source code of this project) (Run the project) (Age Calculator) (Name of project) (Purpose of this project) (Feature of this project) (Input and Output) (Create project) (Project source code) (Temparature Converter) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project) (Source code of this project) (Run the project) (Tic Tac Toe) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project) (Source code of this project) (Run the project)

(Point of Sale System) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project) (Source code of this project) (Run the project) (Temparature Converter) (Name of Project) (purpose of this project) (Feature of this project) (Input and Output) (How to create project) (Source code of this project) (Phone Book Record System) (Name of the Project) (Objective of this Project) (Feature of this Project) (Create Project) (Source Code) (Run Project)

(Application)

open

(Translator)

(Java): C C

(Intermediate) PHP (JavaScript):

C (Cobol)

(HTML) (Python) (Prolog) (QBasic) (Ruby) (SQL) (Visual Basic)

(Hierarchy of Computer Language) Low-level Language Intel X86. High-level Language

(Assembly)

(manage) Windows, Android, Linux

Application

(Application)

1.10 (OS) mp3

Low Level

(High Level)

(Lexical Elements)

Public, This, Private, Static, class

James Gosling

Sun

MicroSystem

Reserve Word That One Predefined in Language]. Abstract Break Default Else If Instanceof Package Protect Synchronized Throws Assert Ed Do Exten Implements Int Private Ds This Return Boolean Public Import False Double Byte Throw Case

Transient Short Interface Catch Long Final Try Static True Char Finally Native Strictfp Void

[Reserve Class Float New Super volatile const for null switch while continue goto

Lexical Elements White Space Comments Identifier) Reserved Words) Literals) Delimiters) Operators Space

Ignore those code

Single Line Comments Multi Line Comments Javadoc Comments Forword Slash

//Dhaka; Dhaka //Dhaka; Bangladesh; //Comilla; Dhaka

/* text */

Comilla

Bangladesh

/* Dhaka; Bangladesh */ Dhaka Bangladesh (External)

/** text */ /** Dhaka; Bangladesh */ Dhaka Bangladesh

Letter, Numbers and Underscore name dog p xm nima $pu -2ah bd Applet black&white A+ Java www.bookbd.info phone# grade_report Class instructor's name 99bottles false theBuyFigureForTheFiscalYear2014 $865

Instance Blue Print

Translate

.java Editor

.class JDK Java Development Kit Textpad, JCreator, Netbeans, Eclips 2, 10, 65, 'a', 'k', "Dhaka"

a, p, p5, dom

int, long, byte, short,char, float, double Ges Boolean Symbol +(Addition), -(Subtraction), ++(Increment), ==(equal), >(is greater than), && (and)

JCreator

do, else, private, public, null, new Oak

Environment Environment (Java IDE) (JDK) (Command Prompt) (Jcreator) (Netbeans) (Eclipse)

Environment Java

www.java.com/verify

JRE (Java Runtime Environment) Verify Java Version G

Run

Confirmation Message

www.java.com/getjava/

Agree and Start Free Download

1. Java JRE (Java Runtime Environment) 2. Java JDK (Java Development Kit) 3. Java IDE (Java Intergraded Development Environment) a. Net Beans b. Eclipse c. jCreator etc.

(Java IDE) A Java IDE (Integrated Development Environment) software application debug IDE syntax highlighting and code completion IDE Ecilpse, NetBeans, JCreator, BlueJ, Processing, Kawa, JBuilder, DrJava

(JDK) Java JDK(Java Development Kit) JDK JDK-7 (Javac), JDK

JDK (Javadoc) JRE

(JRE),

(Java), JRE JDK

JDK (http://www.oracle.com/technetwork/java/javase/downloads/index.html) JDK

SE

(Command Prompt) Run Program in Black Screen



JDK install Files\Java\jdk1.7.0_51\bin Address

program files

C:\Program

My Computer -> properties ->Advance System Setting -> Environment Variable

Path Address Java

Edit Value Apply Balck Screen

JDK

I love Java Programming .

.java)

JavaRun.java

Start+R

RUN

cmd

Computer->Workstation-> Run Java F: ] Java ]

javac

javaRun.java] Run Java [cd Run [dir] javaRun.java Enter

java Class

(dir) (filename.class) java java javaRun

Enter (“I love Java

Programming”)

cmd

(J creat or) program software application IDE completion Java IDE

Java IDE (Integrated Development Environment) debug syntax highlighting and code Jcreato

Jcreator Jcreator

CD

Software

JDK

Jcreator

Yes

setup Yes Jcreator

Next

Jcreator 1.5 Box Open Jcreator 1.5

Start Button

Main menu

Jcreator Open

Jcreator 1.5

Jcreator Source File Java Source File Select

Next

Next

JDK Home directory Finish

File Open File

New G

File

File Name

Class Name

Class Name select Compile

Jcreator

program

(Netbeans) Netbeans

? C, C++, JAVA IDE

IDE Netbeans

NetBean

NetBean

GUI(Graphical NetBean

User Interface) https://netbeans.org/downloads/] NetBean

NetBean NetBean

“I accept the terms in the license agreement”

next

JUnit

“I accept the terms in the license agreement, Install Unit”

next

NetBean NetBean

Programming Files JDK(Java Development Kit) JDK

Next

Install

NetBean

Finish

NetBean

NetBean File

Java Application

New Project Next

Project Name

First Java Program Next

Edit Area ÓFirst Java Program at NetBeans IDE

Run File|

Output IDE

Pakage explorer RUN

Edit

Run

ÓFirst Java Program at NetBeans

File Menu

File Menu New Project: New option Shortcut: Ctrl+Shift+N New File: New File option Shortcut: Ctrl+N . Open Project: Shortcut: Ctrl+Shift+O . Open Recent Project: . Close Project: . Open File: . Open Recent File: . Project Group: group . Project Properties: . ImportProject: zip

import

. ExportProject: export . Save: Shortcut: Ctrl+S . SaveAll: Shortcut: Ctrl+Shift+S . Page Setup: . Print: Shortcut: Ctrl+Alt+Shift+P . Print: Shortcut: Ctrl+Alt+Shift+P . Print to HTML: HTML . Exit: D³

(Eclipse) Eclipse ? program JAVA IDE Java IDE (Integrated Development Environment) software application debug IDE syntax highlighting and code completion Eclipse Java IDE eclipse open-source community Eclipse Eclipse download http://www.eclipse.org/downloads Google eclipse download

Google Eclipse Downloads

click

Eclipse

bit

windows computer menu

properties 64 Bit.

bit mouse

bit right button

Windows click

computer 32 Bit

bit

download link

Eclipse Download link

click

download

eclipse

Eclipse zip eclipse workspace

location

extract eclipse.exe workspace

Eclipse

workspace

“Use this as the default and do not ask again”,

Eclipse eclipse Platform IDE Dev., C/C++, XML

prospective software

Menu option

option toolbar

Cross JAVA, Android JAVA prospective Menubar

Eclipse

4 edit

outline view

৫ ৬

Eclipse



Editor

problem view Project Explorer

output

error

program

Eclipse java Program print java project

program eclipse menu bar

Hello World! This is my first file click New, new

project New java project Finish

project name project_name FirstJavaProgram]

project

project explorer Class File

New

class source Name HelloWorld option

Modifier (public, private etc)

class

Editor Area “Hello world! This is my first java program”

Eclipse

Pakage Explorer Toolbar Menubar Run This is my first java program”

program

run

output

RUN Run File Console

Output

“Hello world!

(Setting up your Computer) (Steps in Writing Java Program)

Prompt (Error)

Java Development Kit 1:

2:

3:

Physical JDK

Bin

JCreator

Setting up your Computer Execute Platfrom

API JVM

Interpreted Environment

API JVM Intregrated Development

JDK Java Development Kit (Install)

http://www.javasoft.com

Textpad, JCreator, Netbeans, Eclips

(FirstJava.java) public class FirstJava { public static void main(String args[]) { System.out.println("My First Program"); } }

(FirstJava.java)     

FirstJava.Java Command Prompt C:\)| FirstJava.Java

Enter

FirstJava My First Program

***

JCreator JCreator

JCreator JCreator V1

JCreator

JCreator New

project

New Window Java File

ok

Files by default Java File, HTML File, Text File book

JCreator (book.java) public class book { public static void main(String args[]) { System.out.println("Bookbd Series"); } }

(book.java) String

S

Capital Letter

System

S

Capital Letter

book Error Compile

Execute Execute

Execute book Execute

Bookbd Series

Steps in Writing Java Program

(execute) : JCreator book.java

Eclips

Netbeans. book

: :

Notepad++, Textpad, .java ( book

Compile JDK Java Runtime

(bd.java public class bd //The name of class is { public static void main(String args[]) { // This is main Method System.out.println("Dhaka"); // System.out.printLn("Bangladesh"); /* In this program comments do not execute. Its use fast for developer help. In this program the output will be dhaka */ } }

double slash Dhaka.

slash star

(Create project) jcreator File New Project Categories Java Projects Java Application Next Project Name softway Finish Source Run softway public class newc.class & oldc.class

(Project source code) import java.util.Scanner; public class SoftWay extends inheritance{ public static void main(String[] args){ full(); } public static void full() //full=full program{ System.out.println("\t\t\t---------------------------------"); System.out.println("\t\t\tWelcome to opur Softway Supershop"); System.out.println("\t\t\t---------------------------------\n\n"); product(); //inheritance called System.out.println("\n\n\t\t\7 1. New Customer"); System.out.println("\t\t 2. Old Customer"); char c; Scanner sc=new Scanner(System.in); System.out.print("\t\t Please Press (1/2) "); c=sc.nextLine().charAt(0); if(c=='1') //for new customer{ newc obj=new newc(); obj.cni(); }else if(c=='2') //for old customer{ oldc obj2=new oldc(); obj2.cid(); }else full(); Scanner bc=new Scanner(System.in); System.out.print("\n\n\t\tPress m to return main menu or press any other key to exit "); int b=bc.nextLine().charAt(0); if(b=='m') full(); } } class inheritance{ public static void product(){

System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Product Name || Product Code |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Rice (5 KG) || RC11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Beef (1 KG) || BF11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Vegetable || VG11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Salt || SL11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Toothpaste || TP11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Shampoo || SM11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Milk Vitae || MV11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Perfume || PR11 |"); System.out.println("\t\t----------------------------------------------------"); System.out.println("\t\t| Cold Drinks (2 Litr) || CD11 |"); System.out.println("\t\t----------------------------------------------------"); }} class newc{//newc=new customer static int i=235; static double t; //t= total public static void cni(){ String cname; //cname=customer name Scanner sc=new Scanner(System.in); System.out.print(" \n \t\t\tCustomer Name: "); cname=sc.nextLine(); System.out.println("\7 \t\t\tCustomer ID : " + (i++)); prices(); footer(); } public static void prices(){ String pcode; //pcode=product code double tp=0,tv=0; //tp=total price & tv=total vat int j; for(j=0;j=235 && id
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF