or you can do this:
class SwitchApp{
public static void main (String args[])throwsIOException {
System.out.println("Please enter Y/N");
char c = (char)System.in.read();
switch (c) {
case 'y': case 'Y'...
Interestin!! This is not possible in java except if you use the + operator.To do what you want you need to store the values in variables and then operate on them from 2 different objects.
Hi,This is how to look at it.If you set the variables to null,then when the Garbage collector comes it will definately collect.However you cannot predict when the collector will run.Its even worse in a jsp ,the behavior of the collector becomes even more unpredictable.This should not be a...
Hi, what you need to do is to close all your streams in a finally block e.g
code:
Source xslSource = new StreamSource(stylesheet);
TransformerFactory transFact = TransformerFactory.newInstance();
Templates templates = transFact.newTemplates(xslSource);
for (int i=0; i<msgs.length; i++)
{...
having just moved my j2ee application from websphere 4.0.3 to 4.0.4,I get a transformerConfigurationError when transforming many xml files.In most cases it transforms ok about 27 times and then throws this error.Using the same code ,this never happened in websphere 4.0.3 where we have done up to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.