4,084 Posted Topics

Member Avatar for nickcolb

[QUOTE=edensigauke;1541229]or you can add 1 to the value of count in your loop[/QUOTE] what good would that do? he would still be trying to fill a non-existing spot in an array. I think what you want is more something like: [Code=Java] ... int [] numbers = new int[count]; for(int ii …

Member Avatar for stultuske
0
5K
Member Avatar for ranu jain

edensigauke: please check the dates. you are replying to a post that is a year old.

Member Avatar for stultuske
-2
133
Member Avatar for hinterface

ehm ... I'm not really sure what your question is. is that your working code you need/want to improve? do you need to write additional methods/functionalities? ... ?

Member Avatar for S N Prasad Rao
0
113
Member Avatar for hwoarang69
Member Avatar for jalpesh_007
0
298
Member Avatar for hinterface

for further reference: could you poste more usefull information? yes, you get the notice of an arrayOutOfBoundsException. but you also are told on which line of your code that occurs (just an example) showing us the relevant code 'll do, you don't always need to show the entire code

Member Avatar for hinterface
-1
104
Member Avatar for ct2944

this has nothing to do with not being able to produce output: the file can't run since it has no main method, which would be the entry point for the program.

Member Avatar for adikimicky
0
101
Member Avatar for harinath_2007

well, J2EE is a bit 'out of date'. since (not sure which version) it's just called JEE. what are you lookint into learning exactly? I doubt anyone will ever know "complete JEE" since JEE is more or less a 'collection of frameworks', while you usually only need to know one …

Member Avatar for harinath_2007
1
121
Member Avatar for hinterface

this is not a java question, this is your assignment. please read the community rules: we are not a "Developers-for-Hire" team, nor are we here to help you cheat. show us your code and tell us where you are stuck, that we will help you with.

Member Avatar for stultuske
-1
100
Member Avatar for jasonmark238

also, based on this (and other threads I've seen you start), using google from time to time wouldn't hurt you. here's a [link](http://docs.oracle.com/javase/tutorial/deployment/applet/index.html) to the official applet tutorials. basically put: an applet is an application that runs in a web-browser.

Member Avatar for <M/>
0
203
Member Avatar for yup790

when in doubt, google :) [read file line by line](http://stackoverflow.com/questions/5868369/how-to-read-a-large-text-file-line-by-line-in-java)

Member Avatar for stultuske
0
417
Member Avatar for ibra.kitandwe

learn how to use that other fine invention: google. or read your textbook. or perhaps your course notes. you may want to go over the sticky thread on top of the Java forum. if you can't locate it, [here](http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq) is a direct link to it.

Member Avatar for stultuske
-2
56
Member Avatar for jasonmark238

well, the generation of the late seventies were wrong. they claimed 'Grease' was the word. when talking about interfaces, there are two words, but 'Grease' is neither of them. the first one being 'Contract': an interface is a fixed contract which applies to any class that implements said interface. every …

Member Avatar for stultuske
-1
214
Member Avatar for ashish.appin07
Member Avatar for ndeniche

"You look gorgeous..." (mankind being lied to by mothers since the first mother, I believe :) ) "You won't feel a thing..." (dentists tricking kids since the profession came to be.)

Member Avatar for chrishea
0
1K
Member Avatar for xHellghostx

by Vector, I'm pretty sure he means : Vector. when you iterate over your array, extract the elements one by one and add those to the vector.

Member Avatar for tux4life
0
605
Member Avatar for learner01
Member Avatar for jonsan32

if you are looking for good "Graduation scripts out there", that kind of makes me think you're trying to cheat you're way through, which is what I hope you're not. so far, what you described is about five to ten minutes work, and sure, there are tons of jquery libraries …

Member Avatar for diafol
0
340
Member Avatar for cgogte

Since not all the links have been updated yet: here's a good one, too: http://docs.oracle.com/javase/tutorial/

Member Avatar for ~s.o.s~
-1
155
Member Avatar for garyjohnson

first thing to check: is your javascript enabled in your browser? that's one big problem when using client side validation: the user can disable it.

Member Avatar for garyjohnson
0
237
Member Avatar for edensigauke

> it would fail to read the data and run to the Exception, may i please have help on it this doesn't really give us much to go on.... some good advice on Exception handling: if your code can throw (for instance) a NumberFormatException, and you are aware of this, …

Member Avatar for edensigauke
0
660
Member Avatar for yup790

bguild: the solution provided by radhakrishna.p does exactly what the OP is asking for, no need to look for "deeper truths" here.

Member Avatar for yup790
0
389
Member Avatar for christiangirl

I've tried to copying the code you provided in Eclipse, to check for the linenumbers, but either you did not give us your most recent code, or you did not post all the exceptions you're getting. you also should know, we don't have all the classes you do, so that …

Member Avatar for stultuske
0
815
Member Avatar for LegendX

are you sure it's an error? I see that you print your array, instead of just an element of it, that might be your problem.

Member Avatar for stultuske
0
109
Member Avatar for wooof21

for getItem, get the item at the index of i, so, the index in list. getTotal should be returntype int, and return the value of count. but I think you're mistaken with what is and should be static. count should be static, item and ID shouldn't be.

Member Avatar for stultuske
0
194
Member Avatar for jalpesh_007

http://www.springsource.org there are also some very good books around: Spring in action (3rd edition) Spring in practice is about to be released .

Member Avatar for jalpesh_007
1
169
Member Avatar for manaila

depends ... do you want to use java code? if you are using javacode in snippets: <% String b = "a small snippet"; %> in your jsp's, then my recommendation: YES, unless you'll only be working with small, personal pages that won't need to be very secure, nor easy to …

Member Avatar for ruchi18
0
156
Member Avatar for minime010

depends on what "sound". what kind of file are we talking about? .midi? .wav? .mp3? the first few can be played with using nothing but core java, but if you want (for instance) to play .mp3 files you'll need an additional library to get it to work.

Member Avatar for minime010
0
515
Member Avatar for prashant1111

without any code, that is very difficult to see. but I made an mp3 player with JLayer once, and it's doable. but what do you mean, WindowListener? what do you need a WindowListener for? why don't you use an ActionListener?

Member Avatar for JamesCherrill
0
319
Member Avatar for Murphyv10

since you forgot to mention what the problem with it is, in which way should that "sterr" go?

Member Avatar for stultuske
0
198
Member Avatar for trishfernan

what are you working in? html? jsp? jsp? php? does it have to be functional or just "look" like that?

Member Avatar for JorgeM
0
111
Member Avatar for noman90

since it's supposed to be for the developer, cookies are out of the question. what you could do, is add a table in your db with one column, which has one row, your counter. on each time you open a session on the page, increment that value with one. might …

Member Avatar for stultuske
0
131
Member Avatar for neondroid

you may want to work on your indentation as well, it'll make it a lot easier to actually read that code. if this is code your teacher gave you, then most likely, what you are asking us to do, is your homework. you should find all the information you need …

Member Avatar for stultuske
0
274
Member Avatar for DyCE
Member Avatar for stultuske
0
454
Member Avatar for dreamslct

the problem with most applications: if it's "simple", it's usually .. well, lousy. a few issues with this code: if you want to add, or correct a definition of a word, you have to recompile your code. you could read both word and definition in from a .txt file, which …

Member Avatar for dreamslct
0
348
Member Avatar for <M/>

still wondering if anybody ever answered: "the rooster" when asked this question .....

Member Avatar for <M/>
0
389
Member Avatar for <M/>

if you are just beginning, I would advice a very simple text-editor and the command prompt, so you'll learn how to compile, package, run, ... your applications without an IDE hiding the steps you should take. so, just beginning, notepad++ is a nice way to go. when you're more familiar …

Member Avatar for sneekula
0
212
Member Avatar for dreamslct

I've got this feeling you may want to give a bit more information of what it is you are trying to do, and what it is you've already tried.

Member Avatar for JamesCherrill
0
363
Member Avatar for techxaidz

it would be best that you either pick up a good textbook on java and go over the material, or look up online what you need to know to work with arrays: [This link](http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html) right here 'll provide you with all you need. but, just to give you a quick …

Member Avatar for stultuske
0
530
Member Avatar for raj09cs42

ehm... what? not sure what you want exactly, but why don't go for a .jar file? besides: "it should run the code"... what code?

Member Avatar for stultuske
-1
123
Member Avatar for nitin1

imho logical reasoning isn't something you learn from a book. an easy way would be to look into brainteasers and try solving them. for instance: one I got one time: you have a row of gnomes, some of them have red hats, some of them have blue hats (and no, …

Member Avatar for aditd
0
157
Member Avatar for bettybarnes

"calculate" an ip address? why would you want to calculate one? you mean you're trying something like [this](http://www.javaprogrammingforums.com/java-networking-tutorials/265-how-get-your-computer-name-ip-address.html)?

Member Avatar for Taywin
0
165
Member Avatar for amrita111

why would you want to use those? if you use static it'll go look for either a missing returntype, or a missing methodname. let's say you could.. public class Person{ private String name; public static Person(String newName){ name = newName; } } just a few reasons why this is not …

Member Avatar for amrita111
0
140
Member Avatar for angel06

that is because you are comparing your Strings in a bad way. '==' will compare the values of primitives correctly, but for Objects (and String is an object) '==' will compare references, not equality of the value. use the .equals() or .equalsIgnoreCase() method instead.

Member Avatar for angel06
0
144
Member Avatar for NoCodeMonkey

well ... you can start with looking into copyrights. just because the information is stored in an avi, a pdf or on a webpage, doesn't mean they don't apply.

Member Avatar for ChrisHunter
0
229
Member Avatar for mumaga

have to? no. there are several packages available to perform these tasks, of which apache's POI library is a very well known example, that is used in tons of applications world wide. there's also no need to provide entire code examples, since the documentation sections of the frameworks provide more …

Member Avatar for stultuske
0
218
Member Avatar for doomsday1216

Tux: I think the reason for the deletion can be found in his edit-message: > EDIT: Nevermind, the problems existed outside of my program! Ignore! Guess he didn't feel like he has to share his code if there's no problem with it, or maybe he removed it so nobody would …

Member Avatar for stultuske
0
126
Member Avatar for ambageo

yes. a JFrame is what you describe as a "Window". you'll need to have your Window class extend the JFrame class and configure and initialize it correctly.

Member Avatar for ambageo
0
214
Member Avatar for Ilda

several ways: MS Access is quite easy, OpenOffice has an alternative, too. MySQL is a more professional, yet still free database. If you are intrested in a database written in Java, to implement in your project, you might want to look for Derby. Since this is for a school assignment, …

Member Avatar for Ilda
0
850
Member Avatar for ambageo
Member Avatar for jessada.dissopa

also: a good advice for a next thread. when you say "interface", a lot of us will misunderstand your question.if you are talking about a Swing interface, it is better to refer to a "user interface" or a "graphical user interface"

Member Avatar for stultuske
1
248

The End.