4,084 Posted Topics
Re: not to mention that "I have a reward-may be ;)" sounds very .... well, let's face it. naughty. if you're planning to go through school that way, .... well, wait do you think would happen if you actually found a job programming? | |
![]() | Re: for those who down-voted JamesCherrill... do you realise he's the only one here so far actually trying to help the OP? plagiarism might get her expelled, depending on who she copies of, might even get her in jail. it sure as hell won't learn him/her to program. the OP has … ![]() |
Re: 203428: you seem to be missing the concept of a forum like this. the point is, that if he has questions, he can post them here, so he can recieve help from thousands of developers. at this point our problem is that we will not aid the OP into cheating … | |
Re: James_28: "interesting things to do on social media" ... sounds a bit like a contradictio in terminis to me. | |
Re: also: never allow your main method to throw Exceptions. you should understand why not long before you try to run more "advanced" applications like calling external applications. | |
Re: the first error means you have two methods with the exact same name and parameter list, which is not possible. if you want to overload methods, you must change the signature. so: remove or re-name one of these. //method to get InventoryValue public double getInventoryValue() { return InventoryValue; } public … | |
Re: auto increment is something you configure in your database, not in your servlet code. anyway, if you want to 'convert it to jsp/servlet', you should re-write your code. saying "not working for me" doesn't help us. what exactly doesn't work? it doesn't compile? it doesn't run? does it throw an … | |
Re: for the product, your variable actually is named 'products' with an s. but besides that, do you see why this part of your code: product[0] = p1; product[0] = p2; product[0] = p3; product[0] = p4; product[0] = p5; is pointless? you'll have only the details of p5 at the … | |
Re: that depends on what you are interested in. do realize, if you choose a job, you'll be doing it full time for (normally) over more than a year. choose something because it pays better over something you want to do, and it's a burn out in the making. | |
Re: paulbeswick: the point of an open forum is to help in the thread, so anybody can benefit from the answers. | |
Re: "the whole console output". what you can do, is print the text you write there yourself. at the very same place you call `System.out.xx(x);` just append the value of x to a textfile. | |
Re: James singizi: if you truly believe that, you don't know very much about the internet and how people think. Facebook's popularity is already falling. trying to stay 'cool', innovating and popular is one of the main reasons they choose to buy up a lot of other applications, rather than competing … | |
Re: just try to compile it, and see for yourself. it's one line that 'll block. if you know just the least bit of your course, you'll easily spot it. if you don't, you haven't read your coursenotes. | |
Re: why double asking? [StackOverflow post](http://stackoverflow.com/questions/23359840/jsf-error-the-class-does-not-have-the-property) | |
Re: allan f: then why don't you hire a consultant? this is an open forum, meaning the 'contact me at ...' is out of place here. | |
Re: > note: ellipse doesnt work right. define "doesnt work right". is there an error. is the output not what you expect? what do you expect, and what do you get? | |
Re: ok ... so, what do you have and what are you having trouble with? | |
Re: generateRandom();//Calling generate number int answer = input.nextInt(); if ( answer == generateRandom() ) well, if you call it twice, it'll be executed twice. replace the above by either: int answer = input.nextInt(); if ( answer == generateRandom() ) or by int generated = generateRandom();//Calling generate number int answer = input.nextInt(); … | |
Re: if you don't know how to instantiate objects, don't go writing your own classes. learn the basics first. asJamesCherril pointed out with the 'inline code' tag: use the new keyword. | |
Re: owwwwww ... key? and how is this connected to "Social Media and Communities"? | |
Re: yah ... this 'll need some major refactoring before becoming (almost) readable | |
Re: by writing code. or, a more conventional way: create an account on a "Create your blog here" site, and start typing. | |
Re: it's nice that you tell us what output you get, but if we don't know what input there was, it's useless. you do understand, that since family and titles don't have the same length, this: `System.out.printf("\n%S's TITLES\n%s\n", family[a], titles[a]);` is bound to cause problems? | |
Re: no, it is not inheritance. there are two things you can check: 1. multiple inheritance is not supported by Java, and you can implement multiple interfaces for each class 2. there is nothing in an interface you can actually inherit | |
Re: create a webservice, send a request to that service, let that service deal with the database | |
Re: > I just need to write this program for an extra credit assignment and frankly I don't know a thing about arrays and don't have time to learn this kind of says it all. either learn about arrays, which would take you about ten/twenty minutes, or fail the task. does … | |
Re: don't really know what you mean by 'dots and boxes' but it seems you have a pretty explanatory pseudo code there. what is it you are having difficulties with? | |
![]() | Re: congratulations ScottShip: you managed to copy paste your assignment. I hope you don't expect us to be to impressed by that show of skill. |
Re: what do you mean "system programming"? | |
Re: first of all: a "netbean frame work"? I assume you mean "a project built using Netbeans"? secondly: it's exe file? if you wanted an exe file, you shouldn't have chosen for Java. creating an exe file for a Java application is nonsense. what problem do you have creating the manifest … | |
Re: cosweet: this is not a "gimme code" forum. work on it yourself. don't want to? tons of places online you can find such code, but it'll cost you: you'll need gateways, pay for services, ... anyway, it won't be "for free". | |
Re: no, php is not cursed. do you want to switch to Java? then start learning Java. but do understand: if you want to learn Java in detail, be prepared for a one year full-time course. after that, you'll have completely mastered the basics. don't underestimate it. sure, you have a … | |
Re: > But what you want to do is to compare the value of this memory rather, the value assigned to the variable. | |
Re: honestly, I stopped going over your code when I saw two major flaws in it. first one: I saw this catch (SQLException se) { //handle catch } at least two times. if you don't understand why that is bad, don't write 'complex' applications before you understand the reason why. secondly: … | |
Re: by instantiating last before you try to call a method on it. if ( last == null ){ last = new Link(); } last.next(); is a possible way, but why calling next if there are no elements in the list yet? | |
Re: not to break your spirits, but to quote you from another one of your threads: > because i haven't study about switch-case and break. So i think i cant use those in my assignment :( don't go worrying about GUI's or event driven, make sure you have a good grasp … | |
Re: might work, but since we don't see all your code, we can only speculate. just to add a little insight here: if you can add customers, it sounds like you can also remove them (or might be required to do so later on). that way, just adding it as a … | |
Re: that would be the most logical way. it's not really an error, rather a suggestion: `if ( x.equals(" ")) ` NetBeans detects the possibility to this code being run without x being initialized. that would lead to a NullPointerException. `if ( " ".equals(x))` here you are calling the equals method … | |
Re: Gerock: first learn the basics of Java, then try to work with classes. the code you posted will never compile. public static void main(String[]args) { public getInformation() { (and so on) you are creating your methods within the main method. that can't compile, and it shows you don't yet understand … | |
Re: as the error says: you are working with an invalid (or corrupted) JAR file. check the comments [here](http://midpath4dingoo.googlecode.com/svn/tags/v0.1/components/core/src/com/sun/midp/installer/InvalidJadException.java) if you are working on J2ME, stop right now, and start using Java ME. There's no need to dwell in the past. | |
Re: you are calling methods that don't exist. there is no 'print' method in System.out that takes a String and an int as parameters, neither is there a 'println' method for these parameters. you are trying to use the SIZE variable in your getSales method, but you've declared it as a … | |
Re: "it doesn't work well/as it's supposed to" what does it do, and how is it supposed to work according to you? ![]() | |
Re: is that JMF code? does look so like me. if it is, dump it. JMF is very outdated and hasn't been maintained for over years. there are better and more efficiĆ«nt ways to play mp3 files these days. also: never allow your main method to throw Exceptions. nothing good can … | |
Re: correctly. as variables you'll use, create two arrays: one of 26 chars `{'a','b', ..., 'z'}` and one of 26 ints (by default 0 values) you'll need an instance of Scanner. read using next, use a call to split to get the information up until the first '.' do remember: only … | |
Re: if I'm not mistaken, you're not supposed to use the 'get' when you call the getter. try to do it the way it is suggested [here](http://stackoverflow.com/questions/9444758/servletexception-property-now-found-whats-wrong-here) | |
Re: if you can't answer these question, first go over your course notes again. what is a FootballClub? what 'properties' does it have? what 'actions' can it perform, or can be performed on it? |
The End.