Graphics g = CustomPaint.this.getGraphics();
if (g.equals(CustomPaint.this.getGraphics()))
{
System.out.println("1");
}
if (g == CustomPaint.this.getGraphics())
{
System.out.println("2");
}
g和CustomPaint.this.getGraphics()是地址相同吗?指向同一个地址吗?还是?请详细说明一下java赋值的含义谢谢~~