LoginSignup
0
0

Java学習1

Posted at

変数

  • データ型と変数名で変数宣言して変数を作る
int length; //整数 lengthを宣言
length = 3; //length に3を代入
  • 型推論で変数を作る
var length = 3; //lengthに3を代入して型推論
// 代入された値からデータ型が決まるので、宣言不要

演算子

特に変わった使い方はしてない

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0