thanks for your help
Type: Posts; User: dubs4sam
thanks for your help
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**********************\\
...
it holds the value of the rating
s is the variable rating
i dont know how else to format the code
//example using Vectors
import java.util.*;
class filmTest
{
String title;
String lead;
String runTime;
double rating;
String id;
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
populateFilmVector();
}
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
populateFilmVector();
//example using Vectors
import java.util.*;
class filmTest
{
String title;
String lead;
String runTime;
double rating;
String id;
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...
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
populateFilmVector();
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...
cant get my head around it
thanks for the help anyway
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...
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
ye
could you give me some idea how to do that im looking at this for ages and not getting anywhere
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
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
thanks
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
populateFilmVector();
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...
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
class read
{
public static void main(String[]args)
{
populateFilmVector();
THanks for the help much appreciated lad
String booking [][]= new String [30] [6] ;//two dimensional array
System.out.println("Enter the seat column you want");//column entry
char column=Keyboard.readChar();...
Code at line 38
booking[column][row] = name;//put name into chosen index
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