SlideShare a Scribd company logo
2011   10   3
2011   10   3
2011   10   3
public class ListEvenNumbers {
            	 public static void main(String[] args) {

            	   	   //define limit
            	   	   int limit = 50;

            	   	   System.out.println("Printing Even numbers between 1 and " + limit);

                    // i     1     50

            	   	   for(int i=1; i <= limit; i++){

            	   	   	   //                    ?      ?
                        //              P37
            	   	   	   if( i % 2 == 0) {
            	   	   	   	 System.out.print(i + " ");
            	   	   	   }


            	 	 }
            	 }
            }
            /*
            Output of List Even Numbers Java Example would be
            Printing Even numbers between 1 and 50
            2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50
            */



2011   10   3
2011   10   3
0   ->   0000   0000   ->   00
                 1   ->   0000   0001   ->   01
                 2   ->   0000   0010   ->   02
                 3   ->   0000   0011   ->   03
                 4   ->   0000   0100   ->   04
                 5   ->   0000   0101   ->   05
                 6   ->   0000   0110   ->   06
                 7   ->   0000   0111   ->   07
                 8   ->   0000   1000   ->   08
                 9   ->   0000   1001   ->   09
                10   ->   0000   1010   ->   0A
                11   ->   0000   1011   ->   0B
                12   ->   0000   1100   ->   0C
                13   ->   0000   1101   ->   0D
                14   ->   0000   1110   ->   0E
                15   ->   0000   1111   ->   0F
                16   ->   0001   0000   ->   10
2011   10   3
2011   10   3
2011   10   3
2011   10   3
2011   10   3
2011   10   3
2011   10   3
2011   10   3
public class VariablesSample {
            	   public static void main(String[] args) {
            	   	    byte b;
            	   	    short s;
            	   	    int i;
            	   	    long l;
            	   	    char c;
            	   	    float f;
            	   	    double d;

            	       	   b   =   Byte.MIN_VALUE;
            	       	   s   =   Short.MIN_VALUE;
            	       	   i   =   Integer.MIN_VALUE;
            	       	   l   =   Long.MIN_VALUE;
            	       	   c   =   (int)Character.MIN_VALUE;
            	       	   f   =   Float.MIN_VALUE;
            	       	   d   =   Double.MIN_VALUE;
            	       	
            	       	   System.out.println(b);
            	       	   System.out.println(s);
            	       	   System.out.println(i);
            	       	   System.out.println(l);
            	       	   System.out.println((int)c);
            	       	   System.out.println(f);
            	       	   System.out.println(d);
            	       }
            }




2011   10       3
2011   10   3
2011   10   3
public class BooleanSample {
            	 public static void main(String[] args) {
            	 	 boolean t = true;
            	 	 boolean f = false;
            	 	
            	 	 if( t == true ){
            	 	 	 System.out.println("t is true!");
            	 	 }else{
            	 	 	 System.out.println("t is false!");
            	 	 }
            	 	
            	 	 if( f == true ){
            	 	 	 System.out.println("f is true!");
            	 	 }else{
            	 	 	 System.out.println("f is false!");
            	 	 }
            	 	
            	 	 boolean isTtrue = ( t == true);
            	 	 System.out.println("(t == true) is " + isTtrue);
            	 }
            }

2011   10   3
2011   10   3

More Related Content

What's hot

Dependent Types with Idris
Dependent Types with IdrisDependent Types with Idris
Dependent Types with Idris
Abdulsattar Mohammed
 
Program presentation
Program presentationProgram presentation
Program presentation
MdAlauddinRidoy
 
Python
PythonPython
Android taipei 20160225 淺談closure
Android taipei 20160225   淺談closureAndroid taipei 20160225   淺談closure
Android taipei 20160225 淺談closure
Gance Zhi-Hong Zhu (朱智鴻)
 
Domain Redesigned
Domain RedesignedDomain Redesigned
Domain Redesignedcmsparks
 
Control flow in c
Control flow in cControl flow in c
Control flow in c
thirumalaikumar3
 
Twigエクステンションの作り方
Twigエクステンションの作り方Twigエクステンションの作り方
Twigエクステンションの作り方Katsuhiro Ogawa
 
Gambas
Gambas Gambas
System Verilog (Tutorial -- 2X1 Multiplexer)
System Verilog (Tutorial -- 2X1 Multiplexer)System Verilog (Tutorial -- 2X1 Multiplexer)
System Verilog (Tutorial -- 2X1 Multiplexer)
Denise Wilson
 
Emo
EmoEmo
オレオレSecurityバンドル作っちゃいました
オレオレSecurityバンドル作っちゃいましたオレオレSecurityバンドル作っちゃいました
オレオレSecurityバンドル作っちゃいましたKatsuhiro Ogawa
 
Reverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorReverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorerithion
 
05 1 수식과 연산자
05 1 수식과 연산자05 1 수식과 연산자
05 1 수식과 연산자
Changwon National University
 
Structure in programming in c or c++ or c# or java
Structure in programming  in c or c++ or c# or javaStructure in programming  in c or c++ or c# or java
Structure in programming in c or c++ or c# or java
Samsil Arefin
 
Learning C programming - from lynxbee.com
Learning C programming - from lynxbee.comLearning C programming - from lynxbee.com
Learning C programming - from lynxbee.com
Green Ecosystem
 

What's hot (19)

Dependent Types with Idris
Dependent Types with IdrisDependent Types with Idris
Dependent Types with Idris
 
Program presentation
Program presentationProgram presentation
Program presentation
 
Vcs8
Vcs8Vcs8
Vcs8
 
Python
PythonPython
Python
 
3 flow
3 flow3 flow
3 flow
 
Android taipei 20160225 淺談closure
Android taipei 20160225   淺談closureAndroid taipei 20160225   淺談closure
Android taipei 20160225 淺談closure
 
Domain Redesigned
Domain RedesignedDomain Redesigned
Domain Redesigned
 
Control flow in c
Control flow in cControl flow in c
Control flow in c
 
Twigエクステンションの作り方
Twigエクステンションの作り方Twigエクステンションの作り方
Twigエクステンションの作り方
 
Gambas
Gambas Gambas
Gambas
 
System Verilog (Tutorial -- 2X1 Multiplexer)
System Verilog (Tutorial -- 2X1 Multiplexer)System Verilog (Tutorial -- 2X1 Multiplexer)
System Verilog (Tutorial -- 2X1 Multiplexer)
 
Emo
EmoEmo
Emo
 
オレオレSecurityバンドル作っちゃいました
オレオレSecurityバンドル作っちゃいましたオレオレSecurityバンドル作っちゃいました
オレオレSecurityバンドル作っちゃいました
 
Reverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operatorReverse Engineering: C++ "for" operator
Reverse Engineering: C++ "for" operator
 
05 1 수식과 연산자
05 1 수식과 연산자05 1 수식과 연산자
05 1 수식과 연산자
 
Structure in programming in c or c++ or c# or java
Structure in programming  in c or c++ or c# or javaStructure in programming  in c or c++ or c# or java
Structure in programming in c or c++ or c# or java
 
Learning C programming - from lynxbee.com
Learning C programming - from lynxbee.comLearning C programming - from lynxbee.com
Learning C programming - from lynxbee.com
 
Open GL Tutorial07
Open GL  Tutorial07Open GL  Tutorial07
Open GL Tutorial07
 
Vb
VbVb
Vb
 

Viewers also liked

金沢高専・グローバル情報学科 科長講話 (新入生研修)
金沢高専・グローバル情報学科 科長講話 (新入生研修)金沢高専・グローバル情報学科 科長講話 (新入生研修)
金沢高専・グローバル情報学科 科長講話 (新入生研修)
金沢工業高等専門学校
 
今日からはじめるセキュリティセミナ
今日からはじめるセキュリティセミナ今日からはじめるセキュリティセミナ
今日からはじめるセキュリティセミナ
金沢工業高等専門学校
 
夏期休業中の評価課題(Javaプログラミング演習)
夏期休業中の評価課題(Javaプログラミング演習)夏期休業中の評価課題(Javaプログラミング演習)
夏期休業中の評価課題(Javaプログラミング演習)
金沢工業高等専門学校
 
H27/04/01 金沢高専・グローバル情報学科紹介
H27/04/01 金沢高専・グローバル情報学科紹介H27/04/01 金沢高専・グローバル情報学科紹介
H27/04/01 金沢高専・グローバル情報学科紹介
金沢工業高等専門学校
 
インタフェース - Java入門
インタフェース - Java入門 インタフェース - Java入門
インタフェース - Java入門
金沢工業高等専門学校
 
金沢スマホアプリコンテスト
金沢スマホアプリコンテスト金沢スマホアプリコンテスト
金沢スマホアプリコンテスト
金沢工業高等専門学校
 
Sygnalizacja
SygnalizacjaSygnalizacja
SygnalizacjaDZPS
 
データーベース - SELECT文入門
 データーベース - SELECT文入門 データーベース - SELECT文入門
データーベース - SELECT文入門
金沢工業高等専門学校
 
OS: 論理ファイル管理 - ディレクトリについて
OS: 論理ファイル管理 - ディレクトリについてOS: 論理ファイル管理 - ディレクトリについて
OS: 論理ファイル管理 - ディレクトリについて金沢工業高等専門学校
 
ファイルアクセス方式 - オペレーティングシステム
ファイルアクセス方式 - オペレーティングシステムファイルアクセス方式 - オペレーティングシステム
ファイルアクセス方式 - オペレーティングシステム金沢工業高等専門学校
 
オブジェクト指向プログラミングの考え方
オブジェクト指向プログラミングの考え方オブジェクト指向プログラミングの考え方
オブジェクト指向プログラミングの考え方金沢工業高等専門学校
 

Viewers also liked (17)

金沢高専・グローバル情報学科 科長講話 (新入生研修)
金沢高専・グローバル情報学科 科長講話 (新入生研修)金沢高専・グローバル情報学科 科長講話 (新入生研修)
金沢高専・グローバル情報学科 科長講話 (新入生研修)
 
今日からはじめるセキュリティセミナ
今日からはじめるセキュリティセミナ今日からはじめるセキュリティセミナ
今日からはじめるセキュリティセミナ
 
夏期休業中の評価課題(Javaプログラミング演習)
夏期休業中の評価課題(Javaプログラミング演習)夏期休業中の評価課題(Javaプログラミング演習)
夏期休業中の評価課題(Javaプログラミング演習)
 
H27/04/01 金沢高専・グローバル情報学科紹介
H27/04/01 金沢高専・グローバル情報学科紹介H27/04/01 金沢高専・グローバル情報学科紹介
H27/04/01 金沢高専・グローバル情報学科紹介
 
インタフェース - Java入門
インタフェース - Java入門 インタフェース - Java入門
インタフェース - Java入門
 
データベース - SELECT文入門2
データベース - SELECT文入門2データベース - SELECT文入門2
データベース - SELECT文入門2
 
金沢スマホアプリコンテスト
金沢スマホアプリコンテスト金沢スマホアプリコンテスト
金沢スマホアプリコンテスト
 
ファイナルプレゼン
ファイナルプレゼンファイナルプレゼン
ファイナルプレゼン
 
Sygnalizacja
SygnalizacjaSygnalizacja
Sygnalizacja
 
授業資料 - ファイルシステム
授業資料 - ファイルシステム授業資料 - ファイルシステム
授業資料 - ファイルシステム
 
データーベース - SELECT文入門
 データーベース - SELECT文入門 データーベース - SELECT文入門
データーベース - SELECT文入門
 
コンピュータシステムの構成とか
コンピュータシステムの構成とかコンピュータシステムの構成とか
コンピュータシステムの構成とか
 
OS: 論理ファイル管理 - ディレクトリについて
OS: 論理ファイル管理 - ディレクトリについてOS: 論理ファイル管理 - ディレクトリについて
OS: 論理ファイル管理 - ディレクトリについて
 
ファイルアクセス方式 - オペレーティングシステム
ファイルアクセス方式 - オペレーティングシステムファイルアクセス方式 - オペレーティングシステム
ファイルアクセス方式 - オペレーティングシステム
 
ファイルとレコード
ファイルとレコードファイルとレコード
ファイルとレコード
 
オブジェクト指向プログラミングの考え方
オブジェクト指向プログラミングの考え方オブジェクト指向プログラミングの考え方
オブジェクト指向プログラミングの考え方
 
SQL入門 - GROUP BYとHAVING -
SQL入門 - GROUP BYとHAVING -SQL入門 - GROUP BYとHAVING -
SQL入門 - GROUP BYとHAVING -
 

Similar to 変数の型 - Java 演習

C tutorial
C tutorialC tutorial
C tutorial
Anurag Sukhija
 
Java operators
Java operatorsJava operators
Java operators
Shehrevar Davierwala
 
c_tutorial_2.ppt
c_tutorial_2.pptc_tutorial_2.ppt
c_tutorial_2.ppt
gitesh_nagar
 
03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...
Intro C# Book
 
Operators
OperatorsOperators
Operators
Daman Toor
 
C tutorial
C tutorialC tutorial
Java Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type ConversionJava Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type Conversion
Svetlin Nakov
 
Data types and Operators
Data types and OperatorsData types and Operators
Data types and Operators
raksharao
 
STL
STLSTL
Creative Coding 1 - 2 Variables
Creative Coding 1 - 2 VariablesCreative Coding 1 - 2 Variables
Creative Coding 1 - 2 VariablesTill Nagel
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programming
Prabhu Govind
 
03-Primitive-Datatypes.pdf
03-Primitive-Datatypes.pdf03-Primitive-Datatypes.pdf
03-Primitive-Datatypes.pdf
KaraBaesh
 
Utility.ppt
Utility.pptUtility.ppt
Utility.ppt
BruceLee275640
 
Mcq cpup
Mcq cpupMcq cpup
Mcq cpup
tahir_ali786
 
Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4
Ismar Silveira
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
 
An Introduction to Part of C++ STL
An Introduction to Part of C++ STLAn Introduction to Part of C++ STL
An Introduction to Part of C++ STL
乐群 陈
 

Similar to 変数の型 - Java 演習 (20)

Vcs14
Vcs14Vcs14
Vcs14
 
C tutorial
C tutorialC tutorial
C tutorial
 
Vcs5
Vcs5Vcs5
Vcs5
 
Java operators
Java operatorsJava operators
Java operators
 
c_tutorial_2.ppt
c_tutorial_2.pptc_tutorial_2.ppt
c_tutorial_2.ppt
 
03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...03 and 04 .Operators, Expressions, working with the console and conditional s...
03 and 04 .Operators, Expressions, working with the console and conditional s...
 
Operators
OperatorsOperators
Operators
 
C tutorial
C tutorialC tutorial
C tutorial
 
Java Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type ConversionJava Foundations: Data Types and Type Conversion
Java Foundations: Data Types and Type Conversion
 
Data types and Operators
Data types and OperatorsData types and Operators
Data types and Operators
 
Tu1
Tu1Tu1
Tu1
 
STL
STLSTL
STL
 
Creative Coding 1 - 2 Variables
Creative Coding 1 - 2 VariablesCreative Coding 1 - 2 Variables
Creative Coding 1 - 2 Variables
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programming
 
03-Primitive-Datatypes.pdf
03-Primitive-Datatypes.pdf03-Primitive-Datatypes.pdf
03-Primitive-Datatypes.pdf
 
Utility.ppt
Utility.pptUtility.ppt
Utility.ppt
 
Mcq cpup
Mcq cpupMcq cpup
Mcq cpup
 
Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
An Introduction to Part of C++ STL
An Introduction to Part of C++ STLAn Introduction to Part of C++ STL
An Introduction to Part of C++ STL
 

More from 金沢工業高等専門学校

H27・11月28日 金沢高専・グローバル情報学科 入試説明会
H27・11月28日 金沢高専・グローバル情報学科 入試説明会H27・11月28日 金沢高専・グローバル情報学科 入試説明会
H27・11月28日 金沢高専・グローバル情報学科 入試説明会
金沢工業高等専門学校
 
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
金沢工業高等専門学校
 
本格的なプログラミングが学べる学校・金沢高専
本格的なプログラミングが学べる学校・金沢高専本格的なプログラミングが学べる学校・金沢高専
本格的なプログラミングが学べる学校・金沢高専金沢工業高等専門学校
 
モデリングとクラス図
モデリングとクラス図モデリングとクラス図
モデリングとクラス図
金沢工業高等専門学校
 
Scratchをつかってプログラムの流れを説明(抜粋)
Scratchをつかってプログラムの流れを説明(抜粋)Scratchをつかってプログラムの流れを説明(抜粋)
Scratchをつかってプログラムの流れを説明(抜粋)
金沢工業高等専門学校
 

More from 金沢工業高等専門学校 (9)

H27・11月28日 金沢高専・グローバル情報学科 入試説明会
H27・11月28日 金沢高専・グローバル情報学科 入試説明会H27・11月28日 金沢高専・グローバル情報学科 入試説明会
H27・11月28日 金沢高専・グローバル情報学科 入試説明会
 
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
金沢高専・新入生へのメッセージ「これからの5年間をどう過ごしますか」
 
本格的なプログラミングが学べる学校・金沢高専
本格的なプログラミングが学べる学校・金沢高専本格的なプログラミングが学べる学校・金沢高専
本格的なプログラミングが学べる学校・金沢高専
 
モデリングとクラス図
モデリングとクラス図モデリングとクラス図
モデリングとクラス図
 
Scratchをつかってプログラムの流れを説明(抜粋)
Scratchをつかってプログラムの流れを説明(抜粋)Scratchをつかってプログラムの流れを説明(抜粋)
Scratchをつかってプログラムの流れを説明(抜粋)
 
参照型 - Java入門
参照型 - Java入門参照型 - Java入門
参照型 - Java入門
 
型変換と優先順位 - Java入門
型変換と優先順位 - Java入門型変換と優先順位 - Java入門
型変換と優先順位 - Java入門
 
情報処理 - CUI 入力のポイント
情報処理 - CUI 入力のポイント情報処理 - CUI 入力のポイント
情報処理 - CUI 入力のポイント
 
看護分野におけるネット活用
看護分野におけるネット活用看護分野におけるネット活用
看護分野におけるネット活用
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 

変数の型 - Java 演習

  • 1. 2011 10 3
  • 2. 2011 10 3
  • 3. 2011 10 3
  • 4. public class ListEvenNumbers { public static void main(String[] args) { //define limit int limit = 50; System.out.println("Printing Even numbers between 1 and " + limit); // i 1 50 for(int i=1; i <= limit; i++){ // ? ? // P37 if( i % 2 == 0) { System.out.print(i + " "); } } } } /* Output of List Even Numbers Java Example would be Printing Even numbers between 1 and 50 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 */ 2011 10 3
  • 5. 2011 10 3
  • 6. 0 -> 0000 0000 -> 00 1 -> 0000 0001 -> 01 2 -> 0000 0010 -> 02 3 -> 0000 0011 -> 03 4 -> 0000 0100 -> 04 5 -> 0000 0101 -> 05 6 -> 0000 0110 -> 06 7 -> 0000 0111 -> 07 8 -> 0000 1000 -> 08 9 -> 0000 1001 -> 09 10 -> 0000 1010 -> 0A 11 -> 0000 1011 -> 0B 12 -> 0000 1100 -> 0C 13 -> 0000 1101 -> 0D 14 -> 0000 1110 -> 0E 15 -> 0000 1111 -> 0F 16 -> 0001 0000 -> 10 2011 10 3
  • 7. 2011 10 3
  • 8. 2011 10 3
  • 9. 2011 10 3
  • 10. 2011 10 3
  • 11. 2011 10 3
  • 12. 2011 10 3
  • 13. 2011 10 3
  • 14. public class VariablesSample { public static void main(String[] args) { byte b; short s; int i; long l; char c; float f; double d; b = Byte.MIN_VALUE; s = Short.MIN_VALUE; i = Integer.MIN_VALUE; l = Long.MIN_VALUE; c = (int)Character.MIN_VALUE; f = Float.MIN_VALUE; d = Double.MIN_VALUE; System.out.println(b); System.out.println(s); System.out.println(i); System.out.println(l); System.out.println((int)c); System.out.println(f); System.out.println(d); } } 2011 10 3
  • 15. 2011 10 3
  • 16. 2011 10 3
  • 17. public class BooleanSample { public static void main(String[] args) { boolean t = true; boolean f = false; if( t == true ){ System.out.println("t is true!"); }else{ System.out.println("t is false!"); } if( f == true ){ System.out.println("f is true!"); }else{ System.out.println("f is false!"); } boolean isTtrue = ( t == true); System.out.println("(t == true) is " + isTtrue); } } 2011 10 3
  • 18. 2011 10 3