4,084 Posted Topics

Member Avatar for nouryn

[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?

Member Avatar for stultuske
0
111
Member Avatar for ashish_nirkhe

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 …

Member Avatar for ashish_nirkhe
0
123
Member Avatar for blackcloud72

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?

Member Avatar for Ezzaral
0
667
Member Avatar for JavaNewbieEK

or use a [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JPasswordField.html"]JPasswordField[/URL] instead of a JTextField

Member Avatar for stultuske
0
479
Member Avatar for savinki

[URL="http://www.laliluna.de/struts-paging-tutorial.html"]Struts paging tutorial[/URL]

Member Avatar for stultuske
0
71
Member Avatar for dimples09

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 …

Member Avatar for dickersonka
-1
103
Member Avatar for ndeniche

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.

Member Avatar for Ezzaral
0
105
Member Avatar for bahr_alhalak

[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, …

Member Avatar for dickersonka
-1
212
Member Avatar for codered152
Re: list

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, …

Member Avatar for ~s.o.s~
0
100
Member Avatar for darthrevan
Member Avatar for bimpok

[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 …

Member Avatar for stultuske
0
141
Member Avatar for bahr_alhalak

[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 …

Member Avatar for dickersonka
0
269
Member Avatar for janamrob

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]

Member Avatar for stultuske
0
122
Member Avatar for No1unoin98

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 …

Member Avatar for No1unoin98
0
93
Member Avatar for tigerkartik

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 …

Member Avatar for ithelp
0
88
Member Avatar for Grub

[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. …

Member Avatar for Grub
0
125
Member Avatar for BestJewSinceJC

if it's just ment to create an easy looking gui, NetBeans can do that for you, using a wysiwyg drag&drop environemnt

Member Avatar for Ezzaral
0
110
Member Avatar for cproud21

[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

Member Avatar for Ezzaral
0
153
Member Avatar for Achupa

[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 …

Member Avatar for ~s.o.s~
0
132
Member Avatar for IMtheBESTatJAVA

[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 …

Member Avatar for IMtheBESTatJAVA
0
517
Member Avatar for Rawrtistic

[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 …

Member Avatar for stultuske
0
165
Member Avatar for ranam

[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 ;)

Member Avatar for ~s.o.s~
0
115
Member Avatar for jjskywlker

[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???

Member Avatar for stultuske
0
4K
Member Avatar for nouryn

yes I believe it can be made. usually, one makes it by analysing the problem, coding the software and then entering the equations

Member Avatar for Ezzaral
0
166
Member Avatar for Achupa

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 …

Member Avatar for stultuske
0
215
Member Avatar for prabbhhu
Member Avatar for sfrider0

what exactly do you try? I think you would be better of using .jsp and java servlets, instead of plain html

Member Avatar for ~s.o.s~
0
240
Member Avatar for Doctor Inferno

for JavaScript questions, I think you'll be better of in a webdevelopment forum.

Member Avatar for ~s.o.s~
0
141
Member Avatar for hariprasad787
Member Avatar for Achupa

[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, …

Member Avatar for stultuske
0
100
Member Avatar for dipsn

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 …

Member Avatar for stultuske
0
60
Member Avatar for Achupa

[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 …

Member Avatar for stultuske
0
108
Member Avatar for neighbordave

[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 …

Member Avatar for stultuske
0
137
Member Avatar for thillai

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

Member Avatar for stultuske
0
86
Member Avatar for ndumbo
Member Avatar for IMtheBESTatJAVA

tried using [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html"]DecimalFormat[/URL]?

Member Avatar for orko
0
140
Member Avatar for efus

[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.

Member Avatar for stultuske
0
101
Member Avatar for aroesurya

[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, …

Member Avatar for Ezzaral
0
111
Member Avatar for dougdudley11

[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

Member Avatar for dougdudley11
0
129
Member Avatar for daBaki.

[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?

Member Avatar for Tbusuk
0
122
Member Avatar for shubhang
Member Avatar for stultuske
0
71
Member Avatar for joshmo

[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?

Member Avatar for Alex Edwards
0
144
Member Avatar for Ajith007

[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 …

Member Avatar for stultuske
0
97
Member Avatar for shubhang

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 …

Member Avatar for shubhang
0
102
Member Avatar for ruby T.

[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 …

Member Avatar for peter_budo
0
179
Member Avatar for sr0867

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

Member Avatar for stultuske
0
94
Member Avatar for lucky200830

what do you mean, you need the logic to complete this? basically, the assignment contains the logic, so, there you go

Member Avatar for stultuske
0
108
Member Avatar for BestJewSinceJC

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 …

Member Avatar for BestJewSinceJC
0
776
Member Avatar for intelli

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

Member Avatar for stultuske
0
92
Member Avatar for dimitrios67

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

Member Avatar for stultuske
0
601

The End.