4,084 Posted Topics
Re: [QUOTE=destin;726907]What is the problem?[/QUOTE] and, more interesting to us, can you show us the code in which you are trying to get the max of those two? | |
Re: second that. an EXE file is a windows executable, which totally ruins the whole platform-independancy offered by Java. if you get the choice, stick to .jar files, if your client prefers to receive an exe, I was in that position once, and found that NativeJ is an easy to use … | |
Re: haven't got the time to read it all and think it over, but I remember I did something like that once, by adding a small thread to my application, which would make the text to be "repainted" every couple of seconds. maybe you can do something similar? | |
Re: or use a [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JPasswordField.html"]JPasswordField[/URL] instead of a JTextField | |
Re: [URL="http://www.laliluna.de/struts-paging-tutorial.html"]Struts paging tutorial[/URL] | |
Re: if I understand correctly, what you want to do now is to get the length out of a String and print its last character: [Code=Java] public void printLastChar(String in){ if (in != null && in.length() != 0){ // there 's no use in printing what's not there, so don't print … | |
Re: awt is the oldest, which means swing is the ... ta-daa :) youngest, most up to date and in certain parts improved compared to awt. off course, you'll still use a number of awt functionalities, but if you intend to make GUI's in Java, I'd suggest picking up on Swing. | |
Re: [QUOTE=bahr_alhalak] i need help ..:([/QUOTE] yeah you do.. not necesarilly ours though. if I read over this code you've posted, it seems that in the comments you can write flawless (or almost flawless) english, while in your posts, you only reach to the level of my 2-year old cousin's english, … | |
Re: every kind of iteration can be used: for, while, do, ... just try and follow the next pseudo-code determine numberOfElementsInList do (numberOfElementsInList) times processElement that'ssss... all there's to it, actually. just program how you think this should be used in Java using a List, and if there are any errors, … | |
| |
Re: [QUOTE=ahyeek;723605]Check out [URL="http://silyeek-tech.blogspot.com/2006/03/dynamic-bandwidth-allocation.html"]Dynamic Bandwidth Allocation implementing Neural-Fuzzy (Neural Network + Fuzzy Logic) Technique simulated in JAVA Network Simulator[/URL] here! Hope this help. :)[/QUOTE] dude... what the hell is this supposed to be? if he hasn't turned in his project yet, he sure as hell failed. the last post in this … | |
Re: [QUOTE=bahr_alhalak;719136]i need only the idea to solve it >> and i will do it by myselfe >>>[/QUOTE] the general idea is: you analyse your assignment, check what kind of data (variables, Objects, ...) you'll need, what kind of actions must be performed on them, ... then, you start creating your … | |
Re: and remember that if you want to compare String Objects, you'll need to use equals or equalsIgnoreCase instead of '==' [Code=Java] if(rating == "PG"){ minAge = getPGuidance(); } [/Code] should be [Code=Java] if(rating.equalsIgnoreCase("pg")){ minAge = getPGuidance(); } [/Code] | |
Re: during your loop is already to late, you have to give it a default value, can be a null-value, or any valid value (as long as it's not 'Q' or 'q') an other problem you're having, is that you compare a String object to characters, and this by using the … | |
Re: learn html, learn jsp's and servlets, choose a webserver decide what you want on your site, what kind of DB (if any) you'll use to support and what frameworks (Spring, Hibernate, Struts, ...) can be usefull for you start the project, write the functionalities you need, add a bit of … | |
Re: [QUOTE=Grub;722555]I have a .jar file; in this .jar file I have many .class files but no .java files for these class files. Is it possible to add functionality to the program? If so how?[/QUOTE] since you don't have the java files, I take it you didn't write the original code. … | |
Re: if it's just ment to create an easy looking gui, NetBeans can do that for you, using a wysiwyg drag&drop environemnt | |
Re: [QUOTE=cproud21;722468] If anyone can help I would appreciate it. I am getting an error in the demo class.[/QUOTE] isn't that the whole point of throwing Exceptions? :) could you paste the code here, instead of attaching the files? It'll make it a lot easier for us to read it | |
Re: [QUOTE=Achupa;722373] to get an output like this: Movie goers: [John , Mary, Frank, Lisa] as in the names of Adult and Child given.[/QUOTE] your code works and does exactly what you programmed it to do. just as ~s.o.s~ pointed out, whenever you try to print an Object or a list … | |
Re: [QUOTE=IMtheBESTatJAVA;720520]Does the way I used with the ^'s still work? Also, what do you mean by putting certain code in methods?[/QUOTE] the code you wrote above will automatically give errors you end your constructor, but you do not start another method or constructor. you can indeed declare variables in a … | |
Re: [QUOTE=Rawrtistic;722190][B]HELLO There, I am in need of some help for my homework. I am doing the AP Computer Science Lab A10.1 StringUtil an In need of some help. How do I do Number 2? Create a method that receives a string and returns a string that is the exact reversal … | |
Re: [QUOTE=BestJewSinceJC;721994]If this means anything to anyone here I think it will be a small miracle.[/QUOTE] taking your nick in consideration, miracles are your trademark, so give it a go ;) | |
Re: [QUOTE=boyjustlearn26;721075]Thank you, for the coding..it really help me to see how it should be.[/QUOTE] you have posted one time on this forum, and that is just to re-open a thread that was solved over four years ago??? | |
Re: yes I believe it can be made. usually, one makes it by analysing the problem, coding the software and then entering the equations | |
Re: well... you're code is quite unreadable. please try using code tags, it 'll make it a lot easier. you also go through a lot of effort, using HashMaps while simple int variables would suffice, but I guess that's up to you to choose. lastly, in the method you want us … | |
Re: and keep in mind that you have to use the right encoding | |
Re: what exactly do you try? I think you would be better of using .jsp and java servlets, instead of plain html | |
Re: for JavaScript questions, I think you'll be better of in a webdevelopment forum. | |
Re: [QUOTE=Achupa;719727] public boolean canWatchMovie(MovieRating mrating) { //some code for checking the age property and movie rating here return false } [/QUOTE] [Code="Java"] ... private String status = null; private int age = 0; // use setters to put the right values in those ... public boolean canWatchMovie(MovieRating mRating){ return mRating.getStatus(this.status, … | |
Re: ever tried putting the search key-words java + hash in [URL="http://www.google.com"]old reliable[/URL]? you'll notice that there are several options: HashMap, HashTree, HashCode, ... since I haven't used any of them for years, I'll leave it to those with more knowledge here on, but you might want to give more details … | |
Re: [QUOTE=Achupa;719538]Hi, I have a method that checks whether Objects in a Collection are Human and whether they are of certain age. I have three different classes for Human, Adult and Child. the code for the method is in a different class called Cinema class. the code is as: [U][B]//THIS METHOD … | |
Re: [QUOTE=~s.o.s~;719368]You need to provide a default constructor for the `Circle' class. [/QUOTE] ~s.o.s~ mentioned the biggest problem you had there. Propably your instructor told you, that during compilation there's automatically a default-constructor created, so you don't need to write it in your code to use. actually, this is true, BUT … | |
Re: I found [URL="http://java.sun.com/developer/technicalArticles/J2EE/Intro/"]this[/URL] on [url]http://java.sun.com[/url], which you can take as your first resource for any Java related questions | |
Re: I doubt it. especially since .pdf is intended as a formatted output, not as input | |
Re: tried using [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html"]DecimalFormat[/URL]? | |
Re: [QUOTE=efus;718638]So I need to do both this: [code] ArrayList suggestions = new ArrayList(); [/code] and this: [code] public ArrayList<String> suggestions( String word ) { return suggestions; } [/code] ?[/QUOTE] when implementing an interface, you need to implement all of it's methods. | |
Re: [QUOTE=aroesurya;714014]I Need find tools for my project , has someone know, tools for code generated write with java code .... i've try to use appfuse but i still find another tools for that ... please help ... Thanks[/QUOTE] do you need tools to write your code, as in an IDE, … | |
Re: [QUOTE=dougdudley11;717299] I fixed up like you said but i'm getting an arrayIndexoutofRange exception and im not sure why[/QUOTE] like most Exceptions, arrayIndexOutOfRange as a name describes your problem. this 'll occur if you try to get the sixth element of an array which can store only five elements | |
Re: [QUOTE=daBaki.;716632]Can someone help me how to read and write text file using Java Code... ??? Thanks in advance..[/QUOTE] can you show us how you tried so far? | |
Re: not really Java related, is it? tried looking into your course notes or on Google? | |
Re: [QUOTE=jbennet;716706]make the methods and fields public in the master class?[/QUOTE] making the superclass containing all the possible variables and methods of the classes that inherit it? | |
Re: [QUOTE=Ajith007;716819]hello, everybody I m final year computer engineering student.I m very much interested in DBMS,java, and all programming stuffs.I have to do a project on DB and java... programming if required,... can u pls suggest some topics and give me resources i need to have(like mysqlor oracle 9i,vb .. etc.etc..)to … | |
Re: if they're to lazy to create a class, and think it's faster just to write in main, let them, and just wait and see what happens if they need to re-use some code. not to mention that if their bosses are not smart or involved enough to see that their … | |
Re: [QUOTE=ruby T.;717028]i didn't ask anyone to do the whole thing ..[/QUOTE] actually, you kinda did. you just posted your entire assignment without one single line of code you've tried. you have to understand, that to us, this is not "urgent!!!". we're not a factory that creates java code, we're more … | |
Re: creating and maintaining a .properties file can be done in notepad. if it's a web application, you'll still need to re-create the .ear/.war / .. file and deploy it to your webserver | |
Re: what do you mean, you need the logic to complete this? basically, the assignment contains the logic, so, there you go | |
Re: generally, we help solving problems that occur in code people post here. we give hints about which way to go, without (in the most cases) to run the code. since there is a GUI being displayed several times, my guess is that the problem lies in the code of the … | |
Re: define: produce an error. this way, you'll show a line in your Dos prompt. is this what you want to do? if so, you have to place all the code that you want only to be run if the year's right in the else block of your if-statement | |
Re: before I start reading that code ... is there something that doesn't work? and what are you trying to acchieve? my idea of buying a new pair of socks is still an idea I got, but I kinda doubht it'll help your project much further |
The End.