Changeset 3fe36de in Git for src/main/java/com/wediscussmovies/project/model/Movie.java
- Timestamp:
- 02/09/22 03:14:08 (3 years ago)
- Branches:
- main
- Children:
- 967b414
- Parents:
- c02189f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Movie.java
rc02189f r3fe36de 95 95 96 96 97 97 public String getShortTitle(){ 98 int to = 20; 99 if (title.length() < to) 100 to = title.length(); 101 if(to<20) 102 return title; 103 return title.substring(0, to) + "..."; 104 } 98 105 99 106
Note:
See TracChangeset
for help on using the changeset viewer.