java怎么运行字符串赋值运算

就像python一样
double currentweight =122.5
double newweight = 60
weight=new…-current…
System…println(weight)
怎么计算出来weight

把字符串转double在运算不就行了