Thursday, January 12, 2012

How to make java work?

Ok, so in java there a characters that can perform special functions, such as a . which is a placeholder for a character or number. However, when i make an ignment statement String y = ".LDKJD", and then use the statement (x.matches(y)), the compiler doesn't treat it as a placeholder but as a unique character. how do i make the compiler treat it as a placeholder?

No comments:

Post a Comment