Results 1 to 6 of 6
  1. #1
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default if-else In BufferedWriter

    can we use If else with Bufferedwriter ....?

    or any another way to set conditions with bufferedwriter

    E.g. :-

    i want to add Hr. or Min after a int value
    like :- if useer enter a value less than 24 ...Then print Hr. otherwise Min (10 Hr.),(60 Min)

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: if-else In BufferedWriter

    Have you tried?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Re: if-else In BufferedWriter

    yes i have done we can't use we do make some variables and then apply if else before bufferedwriter and then concate the variable in write()...

    its called jugad

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: if-else In BufferedWriter

    This looks very much related to this post: https://www.java-forums.org/new-java...tml#post418810

    Do not multi-post. It's confusing, and it's wasting everybody's time. Stick to one post.

    And stop assuming we can see your code. Your questions are vague, and not seeing the code that goes along with it doesn't help.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  5. #5
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Re: if-else In BufferedWriter

    Dude i posted this yesterday and https://www.java-forums.org/new-java...tml#post418810
    this problem is create today...soo...don't b anger

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: if-else In BufferedWriter

    The code and the questions pertaining to it must be in the same thread. We (or at least I) will not be going back and forth between threads to answer questions. It is too cumbersome. And I have never seen anger on this forum (frustration, yes, but not anger).

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. BufferedReader and BufferedWriter
    By Squidkingdom in forum New To Java
    Replies: 1
    Last Post: 04-28-2017, 09:31 AM
  2. BufferedWriter Problem
    By dailywalker in forum New To Java
    Replies: 3
    Last Post: 04-04-2011, 10:07 PM
  3. BufferedWriter, FileWriter
    By ladykrimson in forum New To Java
    Replies: 4
    Last Post: 12-06-2010, 02:35 AM
  4. BufferedWriter
    By Karthika in forum New To Java
    Replies: 6
    Last Post: 04-22-2010, 09:23 AM

Tags for this Thread

Posting Permissions

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