I am in the process of adding a new feature to my Java-based application that will allow access to an MQSeries queue. I am just using the MQ Java base classes from com.ibm.mq.jar.
Has anyone used the MQSeries jars within their own applications and distributed these applications to customers? If...
Disk I/O is pretty CPU intensive.
Try adding a Thread.yield() or a Thread.sleep(250) to the method that reads the file and create a loop where you read only 4K bytes at a time.
Scott, I had struggled with this issue as well. My background was in ForTran and C - very procedural. When I went to C++, I was able to understand the concept of objects, but had difficulty understanding inheritance and definitely couldn't understand why one would use interfaces. I read books...
Java uses an internal toString() method to print like you did via: System.out.println(items.nextElement());
Here's your code with changes I added to create and print the string.
Collection entries = XManager.INSTANCE.findX(ThingsFrom);
Iterator iter = entries.iterator();
String buf =...
Sure - here's an example - you can do this for just about any object. You weren't specific about what was in your vector.
StringBuffer strBuf = new StringBuffer();
for (int i=0; i < vector.size(); i++) {
strBuf.append((object)vector.elementAt(i));
}
String newString = strBuf.toString();
Let...
A new draft spec has just been published at
http://www.ietf.org/internet-drafts/draft-ietf-ediint-as2-14.txt
that's why you could not find the old url.
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.