Okay, new programming language for Burnie. Can anyone tell me how to write a try catch statement for incomparable types? I can't figure out how to get emacs to give me the actual error, and not the very useful description... Basically I want this:
[CODE=java]
public class ThisProgram
{
public static void main (String[] args)
{
String[] list1={"a","b"} ;
String a="a";
String b="b";
String[] everything={a,l ist1,b};
try
{
for (int x=0; x<3; x++)
{
System.out.prin tln (everything[x]);
}
}
catch (Incomparable types)
{
for (int x=0; x<2; x++)
{
System.out.prin tln (list1[x]);
}
}
finally
{
continue;
}
}
}
[/CODE]
[CODE=java]
public class ThisProgram
{
public static void main (String[] args)
{
String[] list1={"a","b"} ;
String a="a";
String b="b";
String[] everything={a,l ist1,b};
try
{
for (int x=0; x<3; x++)
{
System.out.prin tln (everything[x]);
}
}
catch (Incomparable types)
{
for (int x=0; x<2; x++)
{
System.out.prin tln (list1[x]);
}
}
finally
{
continue;
}
}
}
[/CODE]
Comment