我試圖建立自己的應用程序,我需要讓我的jtable第5列值的總和,我用這個代碼: public int getsum(){
int sum = 0;
for (int i=0; i<jTable2.getRowCount(); i++)
{
sum = sum + Integer.parseInt(jTable2.getValueAt(i, 4).toS
@Test
public void test(){
Map<String, Integer> a = new HashMap<>();
a.put("x", new Integer(0));
Integer i = a.get("x");
a.put("x", i++);
i = a.get("x");
a.put(
我有這個... Dim x As Integer
Dim isn As Decimal
Dim fsn As Decimal
Dim inc As Decimal
For m = isn To fsn Step inc
Dim r As String = x * m
If r.Contains(".") Then
Els