here's an example (in java)
public class CodeSample
{
public static void main
(
String[] args
)
{
String s1 =
new String
(
"a string"
);
String s2 =
new String
(
"another string"
);
if
(
s1.equals
(
s2
)
)
{
System.out.println
(
"s1 equals s2"
);
}
else
{
System.out.println
(
"s1 does not equal s2"
);
}
}
}
it seems that if you do things this way it would make it easier to modify individual parts of a program like parameter lists and would make debugging easier because the compiler could specify a particular line where a code is in error and would be more specific than if there was just one line with a bunch of different code in it...
This post has been edited by Jaakuuta: 10 August 2009 - 04:38 PM

New Topic/Question
Reply



MultiQuote









|