0
String filename = jfr.getTitle();
		File fname = new File(filename);
        System.out.println(filename);
        if(filename.equals("untitled"))
		{
		    System.out.println(filename);
			return;
		}
		else
		{  			
			System.out.println(filename+"+");
		}

when i run the above code though the filename is "untitled",the statements under both if and else are been executed...
is there any wrong in it??

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by ahmed hashmi
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.