abdurrahimagca / AtmProject

Multiple variables declared on the same line JAVA-C1003
Style
Major
2 occurrences in this check
Multiple variable declared on the same line
 68  public static boolean transfer(String id, String IBAN, double amount) {
 69    // todo: iban uzunlugunun kontrol edilmesi gerekli
 70    // todo: kullanici kendi ibanina transfer para
 71    double depositSender, depositReceiver; 72    String temp = SqlQuery.StringGetSQL("SELECT deposit FROM clients WHERE id=" + id, "deposit");
 73    depositSender = stringToDouble(temp);
 74    depositSender = depositSender - amount;
Multiple variable declared on the same line
 97
 98  // todo: borç öde
 99  public static boolean payOffDebt(String id, double amount) {
100    double deposit, debt;101    String temp = SqlQuery.StringGetSQL("SELECT debt FROM clients WHERE id=" + id, "debt");
102    debt = stringToDouble(temp);
103    temp = SqlQuery.StringGetSQL("SELECT deposit FROM clients WHERE id=" + id, "deposit");