Advertisement
erkayes935

DataFilm

Jun 25th, 2019
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.70 KB | None | 0 0
  1. package com.appku.myfilmkatalog;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. public class DataFilm{
  6.     public static String[][] data_film = new String[][]{
  7.             {"Bohemian Rapsody","02 November 2018",
  8.                     "https://image.tmdb.org/t/p/w600_and_h900_bestv2/lHu1wtNaczFPGFDTrjCSzeLPTKN.jpg",
  9.                     "Singer Freddie Mercury, guitarist Brian May, drummer Roger Taylor and bass" +
  10.                             " guitarist John Deacon take the music world by storm when they form the" +
  11.                             " rock 'n' roll band Queen in 1970. Hit songs become instant classics. " +
  12.                             "When Mercury's increasingly wild lifestyle starts to spiral out of " +
  13.                             "control, Queen soon faces its greatest challenge yet – finding a way to" +
  14.                             " keep the band together amid the success and excess.","Bryan Singer",
  15.                     "English", "Rami Malek as Freddie Mercury\nGwilym Lee as Brian May\nBen Hardy as" +
  16.                     " Roger Taylor\nJoseph Mazzello as John Deacon\nLucy Boynton as Mary Austin","2 " +
  17.                     "jam 15 menit","Drama\nMusic"
  18.             },
  19.             {"Ant Man and The Wasp","06 Juli 2018",
  20.                     "https://image.tmdb.org/t/p/w600_and_h900_bestv2/eivQmS3wqzqnQWILHLc4FsEfcXP.jpg",
  21.                     "Just when his time under house arrest is about to end, Scott Lang once again " +
  22.                             "puts his freedom at risk to help Hope van Dyne and Dr. Hank Pym dive " +
  23.                             "into the quantum realm and try to accomplish, against time and any " +
  24.                             "chance of success, a very dangerous rescue mission.","Peyton Reed",
  25.                     "English","Paul Rudd as Scott Lang/Ant-Man\nEvangeline Lilly as Hope van Dyne/Wasp" +
  26.                     "\nMichael Peña as Luis\nWalton Goggins as Sonny Burch\nBobby Cannavale as Paxton",
  27.                     "1 Jam 59 menit","Action\nComedy\nSci-Fi\nAdventure"
  28.             },
  29.             {"Bumblebee","21 Desember 2018",
  30.                     "https://image.tmdb.org/t/p/w600_and_h900_bestv2/fw02ONlDhrYjTSZV8XO6hhU3ds3.jpg",
  31.                     "On the run in the year 1987, Bumblebee finds refuge in a junkyard in a small " +
  32.                             "Californian beach town. Charlie, on the cusp of turning 18 and trying " +
  33.                             "to find her place in the world, discovers Bumblebee, battle-scarred and" +
  34.                             " broken. When Charlie revives him, she quickly learns this is no " +
  35.                             "ordinary yellow VW bug.","Travis Knight","English","Hailee Steinfeld " +
  36.                     "as Charlie Watson\nJorge Lendeborg Jr.as Memo\nJohn Cena as Agent Jack Burns\n" +
  37.                     "Jason Ian Drucker as Otis Watson\nPamela Adlon as Sally Watson","1 jam 54 menit",
  38.                     "Action\nSci-Fi\nAdventure"
  39.             }};
  40.  
  41.     public static ArrayList<ParcelFilm> getListData() {
  42.         ParcelFilm parcelFilm = null;
  43.         ArrayList<ParcelFilm> daftar = new ArrayList<>();
  44.         for (int y=0;y<data_film.length;y++){
  45.             parcelFilm = new ParcelFilm();
  46.             parcelFilm.setNama_film(data_film[y][0]);
  47.             parcelFilm.setTanggal_rilis(data_film[y][1]);
  48.             parcelFilm.setPoster_film(data_film[y][2]);
  49.             parcelFilm.setDeskripsi(data_film[y][3]);
  50.             parcelFilm.setSutradara(data_film[y][4]);
  51.             parcelFilm.setBahasa(data_film[y][5]);
  52.             parcelFilm.setPemeran(data_film[y][6]);
  53.             parcelFilm.setDurasi(data_film[y][7]);
  54.             parcelFilm.setGenre(data_film[y][8]);
  55.         }
  56.         return daftar;
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement