shoeb sattar

Greenhorn
+ Follow
since Feb 05, 2010
shoeb likes ...
Eclipse IDE Firefox Browser Java
Merit badge: grant badges
Biography
Ready to help......
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shoeb sattar

Campbell Ritchie wrote:Why is that Date reference static?


Unfortunately I am one of those who have to maintain other people's code.
I assume its static because we wanted to have same file names separated by 10 ms for one instance of execution.
MX-222-01-20160912225702912-1.xml
MX-222-01-20160912225702902-1.xml
MX-222-01-20160912225702892-1.xml
MX-222-01-20160912225702882-1.xml
7 years ago

Knute Snortum wrote:What is the scope of the variable date?  Is it an instance variable?


Hi Knute, Thanks for response.
The date is declared as follows:
7 years ago
Hello,
We have a batch program which is schedule to execute twice during a day.
This batch program creates more than one file depending on some condition.
We store this condition in a hash map as a key and and file name as value.
The file name is a time-stamp with multiple file names separated by 10 milliseconds.The file name creation uses following code snippet



Problem is when the program is executed for 2nd time it even 3rd or 4th  time it is creating file with time stamp 2 days older.

For example if I run the program today i.e. 14th Sep 2016 it is creating file name with time stamp of 12th SEP 2016.

Is the hash-map caching the data and not getting cleared during next run?

Sample file name :MX-222-01-20160912225702912-1.xml

7 years ago
That repetition is just a mistake.
Actually I tried using
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="CD/NAME">
<CD-NAME><xsl:apply-templates select="@*|node()" /></CD-NAME>
</xsl:template>
<xsl:template match="CATALOG/NAME">
<CATALOG-NAME><xsl:apply-templates select="@*|node()" /></CATALOG-NAME>
</xsl:template>
</xsl:stylesheet>


I found these examples on stackoverflow, but s=it seems not working, can you tell me how it can be done using "when"
Hi I am trying to update a tag/element name using XSL.

I have created a custom XSL using base XSL. Please can someone suggest how to do it. I tried all the ways suggested by google

My XML


And my XSL used is


I want to rename "ExtractFAInfo" tag by "CmExtractFAInfo" and ExtractFAInfo by "CmExtractFAInfo"


Shoeb
My question is my project uses "com.ibm.icu.math.BigDecimal" and "java.math.BigDecimal".
What is diference between them? How can we convert one to other?
12 years ago

Matthew Brown wrote:

shoeb sattar wrote:what would be the answer if no constructor was declared explicitly?


Well, in that case there'd be an implicit declaration of a no-arg constructor, but it would be misleading to say that any particular line declared it.


Well, I think you are right and closest to what I can understand..
I don't think such question would be asked in scjp exams?
12 years ago
if there is no constructor declared explicitly, line 2 would not exist
12 years ago
what would be the answer if no constructor was declared explicitly?
12 years ago
some one said when class is declared at that time default constructor is declared,
so line 1 is answer...can you please explain
there is confusion between when a default constructor is declared?
we also know that...

If a class does not explicitly declare any, the Java compiler automatically provides a no-argument constructor, called the default constructor

12 years ago
I came across this question in Khalid Mogul's book, its seems simple but sparked a heated argument among my friends.can some one throw some light on the issue. the exact question was:
Which is the first line of a constructor declaration in the following code?
12 years ago
In 1st ques.... I think E is also correct
14 years ago
Which is true? (Choose all that apply.)



A. "X extends Y" is correct if and only if X is a class and Y is an interface.
B. "X extends Y" is correct if and only if X is an interface and Y is a class.
C. "X extends Y" is correct if X and Y both are classes or both are interfaces.
D. "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces.
14 years ago
interface Base {
boolean m1 ();
byte m2(short s);

}


Which code fragments will compile? (Choose all that apply.)
A. interface Base2 implements Base { }
B. abstract class Class2 extends Base { public boolean m1() { return true; } }
C. abstract class Class2 implements Base { }
D. abstract class Class2 implements Base {public boolean m1() { return (true); } }
E. class Class2 implements Base { boolean m1() { return false; } byte m2(short s) { return 42; } }
14 years ago