Forum: Java Nov 23rd, 2008 |
| Replies: 5 Views: 1,383 For the sake of debugging you can change it, Just have to change it back afterwalds.
Anyhow, It will take you 78 iterations and each time it will ask for an employee name, You don't want that I... |
Forum: Java Nov 23rd, 2008 |
| Replies: 5 Views: 1,383 Its going to ask for the employee name 78 times. so only after that will it print out your array. I would try changing COL's to 3 or something so you don't have to enter in so many numbers before... |
Forum: Java Apr 14th, 2008 |
| Replies: 3 Views: 483 Did you first compile the first file then put it into your classpath ?
or
javac classfile.java testfiile.java
? |
Forum: Java Apr 3rd, 2008 |
| Replies: 3 Views: 532 Hmm abit more reading brings up from the API Docs |
Forum: Java Apr 3rd, 2008 |
| Replies: 3 Views: 532 It appears to be still used it does not state that it is depricated in the API documentation (http://java.sun.com/javase/6/docs/api/java/util/Enumeration.html). |
Forum: Java Jan 23rd, 2008 |
| Replies: 3 Views: 625 But i must continue on to state that while java does have bindings for the DOM, AJAX refers to the usage with JavaScript (refereed to on the w3c site as ECMAScript) to create dynamic webpages.
But... |
Forum: Java Jan 23rd, 2008 |
| Replies: 3 Views: 625 ajax stands for Asynchronous Javascript and XML.
Now technically this is not a java technology, While javascript and java have similar syntax, they are both quite different, Javascript is an... |
Forum: Java Jan 19th, 2008 |
| Replies: 23 Views: 7,142 Some services will send version information when requested. This should allow one to determine the OS running on different machines. For instance RFC 2616 for HTTP describes the server response... |
Forum: Java Jan 19th, 2008 |
| Replies: 23 Views: 7,142 you will have to look into the sockets API (http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html), you can either check if a port is open, then if it is assume that the corresponding service... |
Forum: Java Nov 7th, 2007 |
| Replies: 9 Views: 2,761 You can send it as a Multipart email with plain text and HTML.
you can find instructions from sun here (http://java.sun.com/developer/EJTechTips/2004/tt0426.html)
All you have to do is add both... |
Forum: Java Nov 7th, 2007 |
| Replies: 15 Views: 3,793 GCJ (http://gcc.gnu.org/java/) can be located at http://gcc.gnu.org/java/, Is able to compile java into bytecode or a native executable ( don't know if this works on win32 tho ).
Launch4J is... |
Forum: Java Nov 7th, 2007 |
| Replies: 9 Views: 2,761 you may have better luck if you send the email as hypertext or have a html attachment.
try just enclosing the url in tags as such
String text=" Hello welcome,
click <a... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,111 You where using the findInLine(String patten) method. This takes a patten and returns the matching string ( Using regular expressions )
so if i Used for instance findInLine("[YN]") it would... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,111 Yes, if you look at the API documentation for the Scanner class it says the following about the find InLine method
Attempts to find the next occurrence of the specified pattern ignoring... |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,111 try replacing boysScanner.findInLine(".").charAt(0) with boysScanner.nextLine().charAt(0); |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 2,111 I does not work when I compile it either.
You will find that the method boysScanner.findInLine(".") is returning NULL when you call it the second time. I don't know if this is because of how our... |
Forum: Java Sep 6th, 2007 |
| Replies: 7 Views: 4,540 How about having a method that thakes 2 params
1. How many iterations left.
2. Current String.
Something like ( but prolly not since i have just done this in my head and it would as always be... |
Forum: Java Sep 6th, 2007 |
| Replies: 4 Views: 1,159 Your application is working for me, You do not prompt the user to enter the annualInterestRate, Although this is the first value you require.
You also prompt again for the annualInterest later,... |
Forum: Java Sep 5th, 2007 |
| Replies: 1 Views: 615 in unix
export CLASSPATH=newclasspathhere:$CLASSPATH
in windows
set CLASSPATH=newclasspathhere:$CLASSPATH
same deal with PATH varible |
Forum: Java Sep 5th, 2007 |
| Replies: 4 Views: 1,159 You defined annualInterestRate twice
The variables number, symbol and letters are not defined before you attempt to use them with nextDouble also nextDouble... |
Forum: Java Oct 13th, 2005 |
| Replies: 4 Views: 5,330 Your quite lucky the newest version of the javax.comm libarys come with linux support now, so you don't need rxtx. If you look at the javax.comm package it provides some examples of code using the... |
Forum: Java Aug 8th, 2005 |
| Replies: 3 Views: 3,015 casting is what you need to do.
trying to get a apple out of an array of apples
Apple myApple = (Apple)appleArray[1];
when you put something into an array it is treated as an Object (as in... |
Forum: Java May 15th, 2005 |
| Replies: 14 Views: 2,535 Outputs a space dilimited file with the field names at the top.
Might be worth opening it with Excel or Openoffice calc using space delmimnation... Might be abit neater |
Forum: Java May 15th, 2005 |
| Replies: 14 Views: 2,535 I think it should be in java.prof.
-prof Starts Java runtime with java(1) profiling
enabled. By default, this puts profile
results... |
Forum: Java May 14th, 2005 |
| Replies: 14 Views: 2,535 I don't know if theres a way in java to get a count of the current treads, but you could implement a singleton patterns (only not restrict to a single instance and not returning a class but running a... |
Forum: Java May 14th, 2005 |
| Replies: 14 Views: 2,535 Just looked at the last post if its still the same
you can avoid making a string
URL newURL = new URL(text.substring(numFirst+9, numEnd));
also are you still running run() from the tread, Im... |
Forum: Java May 14th, 2005 |
| Replies: 14 Views: 2,535 I have played around with, A little while ago, an app (a profiler) that checks how optermised your java code is (tells you a range of information on each object, Like memory, and cpu time etc..)... |
Forum: Java May 12th, 2005 |
| Replies: 10 Views: 5,682 Perhaps you could have a look at http://jetty.mortbay.com/jetty/index.html
or
java socks server http://jsocks.sourceforge.net/
perhaps
java network programing FAQ... |
Forum: Java May 12th, 2005 |
| Replies: 10 Views: 5,682 I doubt you will find much, since java really isn't the best for protocal work and most moden OS's have NAT anyway.. Your best bet would be do it yourself, since i really doubt you will find java... |
Forum: Java May 8th, 2005 |
| Replies: 6 Views: 3,637 Thats the leftmost number :P, or if your counting, the last bit... highest bit.. I guess would be a more approprate term |
Forum: Java May 7th, 2005 |
| Replies: 4 Views: 6,480 no. if there not you can use
import whatever.you.called.it;
example
import java.math;
to import the java.math package (standard java package) if you wish to import say all packages in... |
Forum: Java May 7th, 2005 |
| Replies: 4 Views: 6,480 I can't give you much advice since I use eclipse. But check to see if the Classes are part of the same Package.
a package is eqivilent to a namespace in .NET.. Hope this helps
Paul |
Forum: Java May 7th, 2005 |
| Replies: 6 Views: 3,637 This is how it ended up, My problem was basicly that bytes in java are signed bytes and the signed bit is the last bit...
Example:
10010100 - Signed Bit on neg number
01001001 - Signed bit... |
Forum: Java May 7th, 2005 |
| Replies: 1 Views: 5,453 You could use a select statment or the command design patten.
http://www.dofactory.com/Patterns/PatternCommand.aspx |
Forum: Java May 7th, 2005 |
| Replies: 6 Views: 3,637 The following method should swap the high nibble in a byte with the low nibble in a byte.
The following code dosn't work if the lower nibble is above 0111
if it is it returns a negative number...... |