main
Last change
on this file since 6f91f99 was 7f36551, checked in by Test <matonikolov77@…>, 3 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 | |
---|
1 | package com.wediscussmovies.project.web;
|
---|
2 |
|
---|
3 | import com.wediscussmovies.project.model.Movie;
|
---|
4 |
|
---|
5 | import java.util.ArrayList;
|
---|
6 | import java.util.List;
|
---|
7 |
|
---|
8 | public 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.