Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2008, 05:08 AM
Deon's Avatar
Member
 
Join Date: Jan 2008
Posts: 12
Deon is on a distinguished road
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) :");
            
choicein.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: ");
                       
custTelin.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!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-11-2008, 06:00 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
Do you have Admin.java in same directory ??
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 07:22 AM
Deon's Avatar
Member
 
Join Date: Jan 2008
Posts: 12
Deon is on a distinguished road
nope .. oh man i forgot to do it..
__________________
I LOVE JAVA!

Last edited by Deon : 01-11-2008 at 07:25 AM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-11-2008, 07:26 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
Problem is solved i suppose ..
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to solve "No compiler error"? iceman New To Java 5 04-22-2008 05:37 AM
A great doubt in Java Applet,will u solve it!! anithababu Java Applets 6 01-27-2008 03:20 PM
Cannot solve the coding problem of my assignment elimmom New To Java 3 08-13-2007 01:33 PM
confused with protected qualifier.....plz solve this query... money123 New To Java 3 07-30-2007 09:11 AM


All times are GMT +3. The time now is 02:22 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org