source: Git/src/main/java/com/wediscussmovies/project/web/DesignFrontMovies.java@ 7f36551

main
Last change on this file since 7f36551 was 7f36551, checked in by Test <matonikolov77@…>, 2 years ago

Resolved bux for fronted and repaired filtering through title and genres for movies

  • Property mode set to 100644
File size: 486 bytes
Line 
1package com.wediscussmovies.project.web;
2
3import com.wediscussmovies.project.model.Movie;
4
5import java.util.ArrayList;
6import java.util.List;
7
8public class DesignFrontMovies {
9 public static void designMovieList(List<Movie> movieList, List<List<Movie>> movie_rows){
10 for(int i=0; i<movieList.size(); i+=4){
11 int j = i+4;
12 if(j>movieList.size())
13 j= movieList.size();
14 movie_rows.add(movieList.subList(i, j));
15 }
16 }
17}
Note: See TracBrowser for help on using the repository browser.