Way dos it not go to any thing but "Equilateral: Three equal sides" : have made a code to see what kind of triangle but it just gives only one answer

	public static void main(String[] args) {
	String	tal1 = JOptionPane.showInputDialog("Enter the first side of the 
    triangle ");
	Double	d1 = Double.parseDouble(tal1);
		
	String	tal2 = JOptionPane.showInputDialog("Enter the second side of the 
    triangle");
	Double	d2 = Double.parseDouble(tal2);
		
	String	tal3 = JOptionPane.showInputDialog("Enter the Third side of the 
    triangle");
	Double	d3 = Double.parseDouble(tal3);
		
		if (d1<0 || d2<0 || d3 < 0)
			JOptionPane.showMessageDialog(null,"trinagle not 0");
			
		else if (d1 >= (d2+d3) || d3 >= (d2+d1) || d2 >= (d1+d3) )
			JOptionPane.showMessageDialog(null,"Not a triangle");
		
		else if (d1==d2 && d1==d3 && d2==d3 )
			JOptionPane.showMessageDialog(null,"Equilateral: Three equal sides");
			
		else if ((d1==d2 && d2!=d3) || (d1!=d2 && d3==d1) || (d3==d2 && d3!=d1) )
			JOptionPane.showMessageDialog(null,"Isosceles: Two equal sides");
			
		else if(d1!=d2 && d2!=d3 && d3!=d1)
			JOptionPane.showMessageDialog(null,"Escalene: No equal sides");
		
		else
			JOptionPane.showMessageDialog(null,"wrong");
			System.exit(0);
	}
i have change some of the code but dont know what to do