2019年7月18日 星期四

JAVA_Class(類)



範例:

public class Test1 {
String name="KK";//成員變數
Static int a = 100;// 類別變數
public static void main(String[] args) {
String name="AA";//區域變數
int a = 100;
a = 50;
System.out.println(name);
Test02 t = new Test02();//產生 Test02 物件
t.name="WW";
System.out.println(t.name);
Test02.a=100;
System.out.println(Test02.a);
}
}

沒有留言:

張貼留言

Raspberry Pi 做 PostgreSQL(Timescale) 讓真實溫度資料寫入到PostgreSQL - 繪製曲線圖

Step 1:安裝 Grafana(在 Raspberry Pi) sudo apt update sudo apt install -y grafana 我遇到了 你的系統還沒有 Grafana 的套件來源(repository) 必須「手動加入 Grafana 官方 repo...