4,084 Posted Topics
Re: ObSys: if you do feel the need to hand out code, at least make it code that will compile. | |
![]() | |
Re: it would appear there is a problem with your array, that there is no array. or, at least, there are no elements. have you tried printing the value of trackLength before creating the array? have you checked the number of elements your array has? I agree it's unusual for even … | |
Re: now you are talking about multithreading? what do you mean by "loading"? uploading? reading txt files from your harddrive? what have you tried so far, and what exactly is it that you are trying to achieve? | |
Re: which is ... clearly not the same. or you really messed up the formatting of what you tried. I'm pretty sure that if that tutorial was wrong, someone would 've pointed it out already. chances are you missed something in your configuration or tried to run two commands on one … | |
Re: you could use a bit more import statements, rather than using full names for your variables, and applying the same naming convention on your JButtons as on your other variables might make it easier to see in your code what is a variable and what a class of which you … | |
Re: and why would exactly do you want this? are you planning to perform heavy mathematical instructions on your dates? and what is it you are having trouble with? getting the date from the datepicker, or converting it into an int? | |
Re: very new to Java? then do yourself a huge favour and first learn Java. | |
Re: Java is not really an appropriate language to write that. you'll have to communicate with the hardware, and within a jvm. the first is not really Java minded the second ... well, good luck in finding car stereo's, .... that have a jvm installed. | |
Re: this is not really a Java question, rather a sql question. you'll need to add a where clause to your select statement, linking the username in the db to the name of the logged in user: `select * from members where username like 'Nies'` a bit like that. | |
Re: even though I can understand some of the comments made on AncientDragon's "GET A JOB" post, I think most of you don't really get what he's trying to say: if you are in a position in which you know for sure (100%) that you can hardly financially support yourself (and … | |
Re: the fora being 'boring' ... well, they were meant to be (at least for me,as a user) helpfull, not a home-cinema system. the problem I would see of an integrated "live-chat", is that people that could answer tons of questions in a nick of time, might spend that time on … | |
Re: usually, you try to figure out whether the courses are worth taking before starting them. don't know much about their certification program, but I found [this review](http://www.skilledup.com/blog/coursera-certificate-whats-it-worth/) | |
Re: no offence ... but is this site perhaps www.youtube.com or www.imdb.com ? about each and every movie produced these days has murder, rape, ... let's face it: it's what the 'audience' expects. even if you manage to 'shut down' the site, within the day the contents 'll pop up on … | |
Re: what exactly do you mean 'when a char doesn't match'? | |
Re: that would depend on what you need. are we talking about visual differences, functional differences, ... | |
Re: ehm ... create a new page, refer to that page on the existing one, and announce you won't be updating the old page. | |
Re: he wasn't talking about programming, rather looking at the api to see what methods you can use: just check the [api for BufferedWriter](http://docs.oracle.com/javase/7/docs/api/java/io/BufferedWriter.html) as James suggested | |
Re: https://blogs.oracle.com/moonocean/entry/a_simple_example_of_jni http://www.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html | |
Re: ... we aren't clairvoyants, we can't comment on your code without knowing your code. | |
Re: you posted an awful lot of code, but it would be more helpful if you posted a clear description of what it is you are trying to do and what it is that's going wrong. calling a method from another class is exactly the same as calling a method from … | |
Re: [this](http://stackoverflow.com/questions/6131037/how-to-make-an-uninstaller-in-java) might help you out. then again, so would just deleting the folder. | |
Re: http://stackoverflow.com/questions/9502569/how-to-convert-an-image-from-color-to-black-and-white-grayscale-in-java | |
Re: and, depending on how far it must go, add logic for thousands and hundreds. it's not at all difficut to implement, if you just want: 213 to be translated into two one three you can just print the elements of the array you already have by using the numbers-to-translate as … | |
Re: save the files on the server, but not in the jar. that way, you can update it. but updating a running jar .. can't see any logical way how that would work without crashing the application itself. | |
Re: sk8ergirl: don't spoonfeed, just explain the possible algorithms to go through. anjijava16: either sort the array and take the element with the second highest index, or iterate over the array for each element (if you really are not allowed to sort the array, which I doubt) until you've found an … | |
Re: run a sorting method on it. you can implement your own sorting algorithm and use that. | |
Re: by placing breakpoints in your code. | |
Re: to set values in a JTextField, there's the setText(String text) method. | |
Re: that depends... for which do you want to take the exam? a lot of companies are still using Java 6, so for most, the exam for 6 should prove more than enough. also, the differences between the exam for 6 and 7 aren't that "massive". once you've gotten the certificate … | |
Re: [this](http://stackoverflow.com/questions/412435/java-date-formatting) might be nice to read. | |
Re: okey, Tomsy ... this post 1. is years too late 2. makes no sense at all | |
Re: if you get no error message, how do you know it fails? it might just as well have reached a conditional statement and based on that don't run. or, you didn't set your classpath right, and your OS doesn't know what to do with your .jar file. | |
Re: actually, when you write `System.out.println("hello");` you already have it in a String. are you trying to work with input through the command prompt? | |
Re: it would be a lot easier if you mentioned what those errors are. whether you use an IDE, and which one, for that matter, is completely irrelevant. | |
Re: what are you talking about, overlaping each String? what exactly is it you try to get? | |
Re: and your problem with this is ..... ? | |
Re: also: sometimes you ask things none of us know anything about. I can randomly add jibberish answers to Threads that don't have any answers yet, would that help you further? it's impossible to put a time in which an answer should be provided, for a few very logical reasons: * … | |
Re: why use `if (pj.printDialog() == true)` instead of a simple `if (pj.printDialog())` have you checked whether your code goes into that if block? did you debug your code? | |
Re: a few reasons 'spring to mind': 1. they've entered some kind of contest that is won by getting the most likes somewhere. for instance, you organize a contest where people upload their pictures, and those who 've gotten the most likes on the end of the week, wins. this causes … | |
Re: the answer to your first question is basically the very first sentence in that pdf document. what you have to do is explained in the rest of the document. for certain parts, you are already given ready-made code to copy-paste. | |
Re: several things you should know: J2EE is out of date, update to the latest Java EE version. it's very nice you want to finish your application. this hints me that you have already started on it. unfortunately, you forgot to mention what it is you have already done, and what … | |
Re: seriously? re-opening a year old thread for an unrelated question?? | |
Re: well, have you debugged, added some prints at least? the discount is not changing because: you never update the value. could you be a bit more specific on what you expect as result? | |
Re: this is a seven year old Thread. to quote the Beatles: > Let it be... if you have a question, start a new thread. also: provide more information on that Thread. and do realize that "its urgent" is usually a translation for "I didn't start in time, now I'm looking … | |
Re: yo would also learn more if you don't go purely on the above snippets, but try to implement it yourself. just looking at what is being spoonfed doesn't learn you anything, step 1: analyse the problem step 2: understand the problem step 3: write the code step 4: test step … | |
Re: with a select statement. or you can go for hibernate, jpa, ... | |
Re: no. since you don't say what it is you want it to do. we can't help to improve the result, unless we know what the expected/perfect result is. | |
Re: so ... what exactly are you looking for? JavaScript or Java? you do know they're not related, right? |
The End.