2,443 Posted Topics
Re: You need NONE of those. You build a webservice client where you can get normal OBJECTS to work with, rather than a blurb of XML. Edit: Not true, hibernate COULD help with your DB, but not NEEDED. And JAX-WS IS webservices. Simply google for some web service tutorial and pay … | |
Re: And your question is? Let see your code and WE will help YOU to correct it. We are NOT doing this for you. The instructions you posted are MORE than enough to get started, so get started. | |
Re: Uhm, don't use Runtime OR ProcessBuilder for this, for one, see the API docs for Desktop.open. Then, also, make sure the file is really where you THINK it is AND that your program is running with the "currentWorkingDirectory" that you THINK it is. | |
Re: Don't use a "sync" AT ALL. See the API docs for AtomicInteger. And about using Integer for counter? No way. Each "increment" will create a NEW Integer, thereby changing the object on which to look. | |
Re: How about not using split, and, instead, using pattern and matcher with `(([^_^]+)?([_^])?)` i.e. package bogustest; import java.util.regex.Matcher; import java.util.regex.Pattern; public class BogusTest { public static void main(String[] args) { String test = "test_String_123_^"; Pattern p = Pattern.compile("(([^_^]+)?([_^])?)"); Matcher m = p.matcher(test); while (m.find()) { if (m.group(1) != null) System.out.println("Match: … | |
Re: Include the driver jarfile on your classpath. | |
Re: [code] telnet 150.236.18.66 25 <<EOF HELO whatever else you need to send the mail EOF [/code] Better yet, have the script write everything it wants to send in a file and do [code] telnet 150.236.18.66 25 <<filename [/code] Or, even better, simply create a properly formatted mail message and use … | |
Re: Did you do stack1.reverse(); // or whatever you named the method again or did you do stack1 = stack1.reverse(); // or whatever you named the method. Hopefully you can see the difference, and, hopefully you now realize what difference that difference makes. | |
Re: Because it is an EXAMPLE showing method overriding through polymorphism. | |
Re: Add the proper tags? See [this](http://www.tutorialspoint.com/jsp/jsp_standard_tag_library.htm) for help with some of the standard jstl tags that can help with this. | |
Re: Learn Java? Learn about how Auto Dialers work? Put the two together? Come on, really, this is a pretty vague question. You would be much better served pasting it into Google. | |
Re: With a Scanner or InputStreamReader and a for loop and an if statement with one else if and an else. | |
Re: Is your command possibly the "more" command? Try cat. | |
Re: reegex to remove the "and" and "or" and "()" split print | |
Re: Look at the positioning of you brackets. Is that right? I don't think so. For a comparison, look at the positioning of the brackets used in the declaration of the main method. | |
Re: So that people do not have to repeat themselves this is also posted [here](http://www.java-forums.org/new-java/82101-inserting-into-multiple-tables-mysql-using-java.html). | |
Re: P.S. What does this have to do with Java? | |
Re: Nothing will, initially, be created on the heap, except of course, that which ArrayList itself needs. Well, I can't say nothing, the initial "list" will contain 10 "slots" so the memory needed for those references (4 bytes each) as well as the reference for the ArrayList itself (also 4 bytes) … | |
Re: Use nextLine (as intimated by James in his first post) and, unless you are not allowed to as part of this assignment, use replaceAll and some regex (keyword word boundary). | |
Re: See the JDBC tutorials for PreparedStatement. Cobbling together a statement like this is just BEGGING for problems. Not only for syntax problems like you have, which can even come if the code is right, because what happens if the text for a field value contains a single quote (')? But … | |
Re: That "mtime" is modification time, read from the file meta data, it does not need to be in the name, at all. If you want to remove the files you need to change the ls command to an rm command, of course. run "man find". You might also want to … | |
Re: This is definitely a system-level sort of program and NOT the thing Java was intended for. If you intend to "drive on" with this then Google for "java jcap network", jcap, although not intended for what you want, MIGHT, if you investigate the code, give you some hints as to … | |
Re: You should be writing an abstract class that declares abstract methods, then a class that extends that abstract class and implements those abstract methods, then a third class that uses that extended class (probably in a variable declared as the abstract class type) that uses those implemented methods to perform … | |
Re: See the tutorials. Start with the "sticky" thread in this forum. | |
Re: Start your own thread. But as a quick answer, see the tutorials, they have one that specifically covers menus and menubars, including separators. | |
Re: I would say, first, to contact whoever you got this "Tribot" from, and second to [file a bug report](http://bugreport.sun.com/bugreport/) with oracle. | |
Re: I'm fairly willing to bet that those Oracle customers with the correct support contract DO have a fix. | |
Re: Lets say the variable contianing "highway" is "var", then ${table[$var]} | |
Re: Those look like functions that someone wrote locally (I haven't done Perl in a while so I may be mistaken, but I do NOT remember functions with those names as part of standard Perl or its standard extension modules). | |
Re: @ManagedBean @ApplicationScope public class YourClass ... In Servlet: getServletContext().getAttribute("yourClass") In JSF: #{yourClass.whatever} | |
Re: for arg in "$@" do echo `pwd /${arg}` done Although I do not know why you are including a leading slant there, or, actually, ANY argument to pwd. Or are you intending to pass an OPTION to pwd, in which case it should "-" and not "/". "/" is the … | |
Re: Show the blocks of css and the jsf code where you expected those to take effect. | |
Re: See [This](http://www.tutorialspoint.com/unix/unix-special-variables.htm). | |
Re: We will probably need something better than "or something like that", but my first guess would be to check the configuration of your local mail server. Can you send mail through it using an other mail tool? | |
Re: try mvn dependency:build-classpath | |
Re: At least in the bash and korn shells there are associative arrays, essentially hashes. See [this](http://www.linuxjournal.com/content/bash-associative-arrays) for bash and [this](http://www.itworld.com/nls_unix_arrays060817) for korn. | |
Re: for (x = 0; x < 5; x++) System.out.println("This is x:" + x); When you do not use braces { } to demarcate your blocks (whether for if, for, when, whatever) then ONLY the next statement is part of that block. | |
| |
Re: We will NOT write code for you. To actually help you we will need more information though. Here some info to get you started FileInputStream FileOutputStream Socket ServerSocket | |
Re: Sounds like you do not have their jarfile on your classpath. | |
Re: Uhm throw new SecurityException() and throw new StackOverflowError() maybe? | |
Re: When I google "java fuzzy logic library" the very first link is an Open Source library project and the second link is a "detailed example". Did these not work for you? | |
Re: It MIGHT help to know EXACTLY what you are changing AND HOW you are using it (i.e. both the css changes as well as how that css, including class and id if need be, is included in the JSF page). | |
Re: You can't (AFAIK), not like you're thinking. MSAccess is a file, and does not have, in anyway shape or form, a network interface (AFAIK). Place the DB on a shared filesystem and access it directly, but beware of concurrent connections, those are a problem for access. | |
Re: @rubberman Really? nedit for Unix/Linux? I assume you do not use UTF-8 for your standard file encoding? Because the last time I used nedit it did not support UTF-8 encoding and that caused some very irritating problems for the web-site I was working on. Or does it now support UTF-8 … | |
Re: You are entitled to your opinion, BUT, when the process is EXPLICITLY defined by the JLS to NOT do that, it doesn't really MATTER what your opinion is. Edit: Also, you STILL do not seem to have grasped the fact that C++ "works" that way IN THE CURRENT IMPLEMENTATION of … | |
Re: call validate and/or repaint on the container that contains those components. | |
Re: It greps whether the command used contains the string "/transforms/" and returns 1 if it does and 0 if it doesn't. $0 (or, iow, ${0}) refers to the actual command used on the command line. |
The End.