Search:

Type: Posts; User: dubs4sam

Page 1 of 2 1 2

Search: Search took 0.17 seconds.

  1. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    thanks for your help
  2. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    I have it printing out the highest rated film now not sue if its the correct way but its doing waht i want it to do thanks for the help

    //******************QUESTION**********************\\
    ...
  3. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    it holds the value of the rating
  4. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    s is the variable rating
    i dont know how else to format the code
  5. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    //example using Vectors
    import java.util.*;
    class filmTest
    {
    String title;
    String lead;
    String runTime;
    double rating;
    String id;
  6. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;

    class read
    {
    public static void main(String[]args)
    {
    populateFilmVector();
    }
  7. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;

    class read
    {

    public static void main(String[]args)
    {
    populateFilmVector();
  8. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    //example using Vectors
    import java.util.*;
    class filmTest
    {
    String title;
    String lead;
    String runTime;
    double rating;
    String id;
  9. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    That error only occurs when I attempt to pass down the list to the method I counted an even
    Number of }'s

    Is it even possible to find the highest rated film based on rating with the code I have...
  10. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;

    class read
    {

    public static void main(String[]args)
    {
    populateFilmVector();
  11. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    Write a method called bestFilm() that searches through the FilmVector and returns the best film based on the ratings. The method should return the Film object

    thats exactally what im trying to do...
  12. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    cant get my head around it

    thanks for the help anyway
  13. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    i have it wrong what i want it to do is look at each element and see if its greater than the last to find my highest rating i am getting an error for my loop at the miniute

    //************** Error...
  14. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    for (int i = 0;i<filmList.size();i++)
    {

    filmList(5) = filmList(i);

    }


    thats what iv done so far just wandering am i going in the right direction or is that wrong
  15. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    ye

    could you give me some idea how to do that im looking at this for ages and not getting anywhere
  16. Replies
    32
    Views
    24

    Re: Find Highest rated movie

    This is the desired output


    Film title ain & Gain
    Lead role wayne Jhonson
    Run time :123
    Rating :4.5
    id :23415

    Film title :2br/1ba
  17. Replies
    32
    Views
    24

    Find Highest rated movie

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;


    class read
    {

    public static void main(String[]args)
    {
  18. Replies
    6
    Views
    19

    Re: Java string tockenizer

    thanks
  19. Replies
    6
    Views
    19

    Java string tockenizer

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;

    class read
    {

    public static void main(String[]args)
    {
    populateFilmVector();
  20. Replies
    6
    Views
    19

    Re: Java string tockenizer

    the output of my java program is

    Pain & Gain,Dwayne Jhonson,123,4.5,23415
    2br/1ba,Spencer Grammer,113,3.2,57324
    Training Day,Denzel Washington,136,5.0,23244
    Lone Surivoe,Mark...
  21. Replies
    6
    Views
    19

    Java string tockenizer

    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;

    class read
    {

    public static void main(String[]args)
    {
    populateFilmVector();
  22. Re: Airline having with array index out of bounds exception

    THanks for the help much appreciated lad
  23. Re: Airline having with array index out of bounds exception

    String booking [][]= new String [30] [6] ;//two dimensional array
    System.out.println("Enter the seat column you want");//column entry
    char column=Keyboard.readChar();...
  24. Re: Airline having with array index out of bounds exception

    Code at line 38





    booking[column][row] = name;//put name into chosen index
  25. Re: Airline having with array index out of bounds exception

    Enter the seat column you want
    C
    Enter the seat row you want
    22
    Enter your name
    Paul
    Paul your seat is column 2 seat 22

    This is the error i get
Results 1 to 25 of 26
Page 1 of 2 1 2