Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Java講習.pdf
Search
Yusuke
February 14, 2020
650
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Java講習.pdf
Yusuke
February 14, 2020
More Decks by Yusuke
See All by Yusuke
第五回 未経験者のためのJava勉強会
yusuke_i32
0
220
第四回 未経験者のためのJava勉強会
yusuke_i32
0
270
第三回 未経験者のためのJava勉強会
yusuke_i32
0
350
第二回 未経験者のためのJava勉強会
yusuke_i32
0
250
Featured
See All Featured
New Earth Scene 8
popppiees
4
2.6k
Scaling GitHub
holman
464
140k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
690
Producing Creativity
orderedlist
PRO
348
41k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
200
Amusing Abliteration
ianozsvald
1
300
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
580
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
240
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Leo the Paperboy
mayatellez
10
2.3k
Marketing to machines
jonoalderson
1
5.8k
Transcript
未経験者のためのJava勉強会
自己紹介
VSCodeのインストール
None
None
None
None
None
None
None
None
VSCodeの設定
None
None
None
None
command + , 同時押し
autosave
afterDelayを選択
JDKインストール
Macの方
`/usr/libexec/java_home -v 1.8`
None
None
None
None
ターミナルを開いてください
java -version
java version "1.8.0_241"
Windowsの方
None
None
None
None
None
None
None
None
None
None
Win + R control
None
None
None
None
None
None
None
None
None
None
None
None
Javaを用いて作られた物
None
休憩
HelloWorldを表示してみよう!
None
None
None
None
None
None
None
プログラミング言語で書かれたコンピュータプログラム ソースコード
None
None
javac Hello.java
None
java Hello
None
演算子について
加算 … + 減算 … - 乗算 … * 除算
… / 剰余 … % 算術演算子
None
None
評価について
1+5=6 化ける オペランド
代入演算子 a = 10
None
None
None
・< … A<B ・<= … A<=B ・> … A>B ・>=
… A>=B ・== … A==B ・!= … A!=B 関係演算子
None
None
<の部分を他の関係演算子に変えて 出力してみましょう!
繰り返し処理 while,for文
whileの繰り返し処理
while(条件式){ ブロック }
None
None
None
None
forの繰り返し処理
for(条件式){ ブロック }
None
None
<と10の間に=を入れて 実行してみてください
None
分岐処理 if文
if(条件式){ ブロック }ブロック
None
None
if(条件式){ ブロック }else if(条件式){ ブロック }ブロック
None
None
FizzBuzz問題
3で割り切れる数の時にFizz 5で割り切れる数の時にBuzz 15で割り切れる数の時にFizzBuzz と表示 それ以外の数はそのまま表示する
1~15の間でのコードを書いてみましょう!
None
最初に1からスタートし15になったら止まるループを書き ます
15で割り切れたらFizzBuzzを表示するif文を書きます
5で割り切れたらBuzzを表示するif文を書きます
3で割り切れたらFizzを表示するif文を書きます
それ以外の数を表示する文を書きます
表示させてみましょう!
おすすめの書籍紹介
スッキリわかるJava入門
ありがとうございました