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??

sorry sorry it was my mistake it is working fine

can u tell me,what is the use of jfr.getTitle()?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.