Ignore:
Timestamp:
02/09/22 03:14:08 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
967b414
Parents:
c02189f
Message:

Added User profiles, improved clarity, improved UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/model/Movie.java

    rc02189f r3fe36de  
    9595
    9696
    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    }
    98105
    99106
Note: See TracChangeset for help on using the changeset viewer.