In code journalOrderString is defined as a String type.
journalOrderString = JournalUtil.getRecordedJournalOrder(scriptName + ".tst");
It is calling getRecordedJournalOrder()method from another class;
public static String getRecordedJournalOrder(String scriptName)
But here it is taking only scriptName as arguement and not scriptName + ".tst";
But I want to know can we pass 2 values-(scriptName + ".tst");
to a method accepting only one argument -getRecordedJournalOrder(String scriptName),like we see in code.
Arpit gmail wrote:Thanks Michael Dunn for your link.
But I want to know can we pass 2 values-(scriptName + ".tst");
to a method accepting only one argument -getRecordedJournalOrder(String scriptName),like we see in code.
Isn't it easier to try it out yourself? Did you? What happened? What do you think scriptName+".tst" evaluates to?
Arpit gmail wrote:Thanks Michael Dunn for your link
"Isn't it easier to try it out yourself? Did you? What happened? What do you think scriptName+".tst" evaluates to?"
It's working fine .But I want to know what does this mean scriptName+".tst"-It's appending .tst to scriptname?