Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: FileOutputstreams

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink FileOutputstreams

    hello everyone !
    Can u help me in finding the error in this line

    System.out.println("\n Still Available: +"f.available());

    I am mainly getting 3 main errors in this line

    1)')' expected near f.available .
    2)Illegal start of expression
    3) ; expected .
    Plz do it fast . Thanks

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: FileOutputstreams

    Quote Originally Posted by Appu14 View Post
    hello everyone !
    Can u help me in finding the error in this line

    System.out.println("\n Still Available: +"f.available());

    I am mainly getting 3 main errors in this line

    1)')' expected near f.available .
    2)Illegal start of expression
    3) ; expected .
    Plz do it fast . Thanks

    Try like this:
    System.out.println("\n Still Available: "+f.available());
    You put the concatenation sign in the wrong place.

    Chris

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: FileOutputstreams

    Quote Originally Posted by Appu14 View Post
    Plz do it fast . Thanks
    !!!!!!!!!!!!!

Tags for this Thread