Skip to content

Commit

Permalink
Project
Browse files Browse the repository at this point in the history
  • Loading branch information
Pashkar80 committed Mar 13, 2018
1 parent bd8ce99 commit e7bcf43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/by/it/karpeichyk/Project/java/dao/BEAN/Ad.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public void setDescription(String description) {
this.description = description;
}

public double getCarrying() {
public int getCarrying() {
return carrying;
}

public void setCarrying(int carrying) {
this.carrying = carrying;
}

public double getVolume() {
public int getVolume() {
return volume;
}

Expand Down
2 changes: 1 addition & 1 deletion src/by/it/karpeichyk/Project/java/dao/DAO/MyAdDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class MyAdDAO extends AbstractDAO_My implements DAO<Ad> {
@Override
public boolean create(Ad ad) throws SQLException {
String sql = String.format(Locale.ENGLISH,"INSERT INTO ads (Description,Carrying,Volume,Tariff,FK_Users)" +
" VALUES ('%s','%s','%s','%s','%d');",
" VALUES ('%s','%d','%d','%s','%d');",
ad.getDescription(),
ad.getCarrying(),
ad.getVolume(),
Expand Down
8 changes: 4 additions & 4 deletions src/by/it/karpeichyk/jd01_09/Operation.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Created by user on 13.01.2018.
*/
public interface Operation {
Var add (Var other) throws CalcExeption;
Var mul (Var other)throws CalcExeption;
Var div (Var other)throws CalcExeption;
Var sub (Var other)throws CalcExeption;
Var add(Var other) throws CalcExeption;
Var mul(Var other)throws CalcExeption;
Var div(Var other)throws CalcExeption;
Var sub(Var other)throws CalcExeption;
}

0 comments on commit e7bcf43

Please sign in to comment.