Results 1 to 4 of 4
  1. #1
    Deon's Avatar
    Deon is offline Member
    Join Date
    Jan 2008
    Posts
    12
    Rep Power
    0

    Wink Help mi solve my error

    I'm making a Movie rented shop but somehow i got 2 error that i can't slove it
    Please take a look

    i got 2 more driver file that is needed for this MovieRentalUI to take data from

    PHP Code:
    import java.util.Scanner;
    
    public class MovieRentalUI {
    
    	public static void main(String args[]){
    
    		
            String nName,newAddress,receipt,customer,choice,movies,cont="N";
    
            int Cost,custTel;
           
    
                
    		String DvdTitles;
    		String DvdTitles2;
    		movie movie;
    		String output="",input;
    		Admin admin = new Admin();
          
    
    	
    		do{
    
    			  Scanner in= new Scanner(System.in);
    			do
    			{   
    				System.out.print("Enter the title of movie: ");
         		   		DvdTitles = in.nextLine();
          			  	movie = admin.findDVDByName(DvdTitles);
    			}while(movie==null);
    		        output="" + admin.showDVDDetails(DvdTitles);
    	       	        System.out.println(output);
    		
    			//end of dvd enquiries
    		  
    			System.out.println("Proceed to rent? (Y/N) :");
    			choice= in.nextLine();
    			if(choice.equalsIgnoreCase("Y"))
    			{
    				//customer particulars
               			System.out.print("Please enter customer's name: ");
               			nName=in.nextLine();
               
              			 System.out.print("Please enter customer's address: ");
              			 newAddress =in.nextLine();
               
               			System.out.print("Please enter customer's telephone number: ");
               			custTel= in.nextInt(); 
               
    				
                    		Customer aCust = new Customer(nName,newAddress,custTel);
                    
                    
                			customer="\nPrinting out receipt for " + aCust.getName()+ "..."+ "\n" + 
                		     		"Address: " + aCust.getAddress() +"\n\n"; 
                		     	
                			receipt="Renting out " + DvdTitles + " for " + " $ "+movie.getCost()  +"\n"+"\n"+
                			 	"\nThank You For renting our DVD please come again" + "\n\nServing next customer.......";
                	
                			System.out.println(customer + receipt );
                	
                		}		
    			if(choice.equalsIgnoreCase(""))
    			{
    				System.out.print("Invalid Entry....GoodBye!!!!!\n");
    			}		
    			
    		
    			if(choice.equalsIgnoreCase("N"))
    			{
    				System.out.println("Do You Want To Continue?(Y/N) : ");
    				cont=in.nextLine();
    			}
    	
    			
    		}while(cont.equalsIgnoreCase("Y"));
    		System.out.println("GoodBye!! ");
               	System.exit(0);
    	}
    	
    }
    The error i got is


    i don know what's wrong with my admin
    I LOVE JAVA!

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Do you have Admin.java in same directory ??
    dont worry newbie, we got you covered.

  3. #3
    Deon's Avatar
    Deon is offline Member
    Join Date
    Jan 2008
    Posts
    12
    Rep Power
    0

    Default

    nope .. oh man i forgot to do it..
    Last edited by Deon; 01-11-2008 at 06:25 AM.
    I LOVE JAVA!

  4. #4
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Problem is solved i suppose ..
    dont worry newbie, we got you covered.

Similar Threads

  1. How to solve "No compiler error"?
    By iceman in forum New To Java
    Replies: 5
    Last Post: 04-22-2008, 04:37 AM
  2. A great doubt in Java Applet,will u solve it!!
    By anithababu in forum Java Applets
    Replies: 6
    Last Post: 01-27-2008, 02:20 PM
  3. Cannot solve the coding problem of my assignment
    By elimmom in forum New To Java
    Replies: 3
    Last Post: 08-13-2007, 12:33 PM
  4. Replies: 3
    Last Post: 07-30-2007, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •