4,084 Posted Topics

Member Avatar for siddiqui_1985

well, you can use the 'i' you use to iterate over your input, and print (at index i there's vowel <vowel>)

Member Avatar for stultuske
0
717
Member Avatar for plasticfood

normally not. it just makes it a hell of a lot harder to maintain (if you are interreseted in that)

Member Avatar for plasticfood
0
177
Member Avatar for ttamilvanan81

you call [QUOTE] MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY ---------- ---------- ---------- ---------- ---------- ---------- ---------- 0 0 0 0 0 1 1 [/QUOTE] a code snippet of html???

Member Avatar for stultuske
0
540
Member Avatar for hannah shrn j

as JamesCherril points out, that problem is what you get when you misuse the brackets: you've either forgotten a { or a }, or you've simply placed on of these on a wrong location. I've taken a quick peak over your code, and, well, it's kind of sloppy work. just …

Member Avatar for JeffGrigg
-1
262
Member Avatar for lele07060

your assignment says you should take two integers as input. Why are you reading two doubles? also, be very carefull with what you do: a double is not the same thing as a Double since you are asking this question, I must assume you're getting an error message, or at …

Member Avatar for JeffGrigg
0
3K
Member Avatar for lbgladson

also: don't put two return statements in one method, that's bound to give errors. you do realise there's a big difference between a Scanner object and an integer (primitive) I assume?

Member Avatar for stultuske
0
170
Member Avatar for looklikeasfine
Member Avatar for stultuske
0
115
Member Avatar for javaman2

@looklikeasfine: did you seariously re-open a dead thread in order to ask us to do your homework for you? here are a few pointers: we don't mind helping you with your problems but, keep in mind: 1. if you have a problem, start a new thread, don't hijack someone elses …

Member Avatar for stultuske
0
2K
Member Avatar for ali11

you're not supposed to "make" a Stack, just use it. everything you need from a Stack is already been written. so what exactly is your problem? I don't really see a question in your post.

Member Avatar for stultuske
0
546
Member Avatar for lele07060

and what do you mean: do not fit in my schedule? unfortunately, once you've graduated and you start working, do you think your employer will adjust his schedule to yours? you'll find a lot of situations like this later on in life, some of the regulations at school/university (for instance, …

Member Avatar for stultuske
0
104
Member Avatar for lorettah
Member Avatar for Taywin
0
96
Member Avatar for ZeroEddy

tkud has a point, Objects and Classes are very basic stuff in an Object Oriented language. anyway, a good way to start, would be to take a look at the sticky thread on top of this forum. Or, you can visit it by clicking [URL="http://www.daniweb.com/software-development/java/threads/99132"]here[/URL].

Member Avatar for ZeroEddy
0
239
Member Avatar for dhija22

Googlink "Error 1723" will give you loads of entries in forums where people are discussing that problem and how to work it out.

Member Avatar for stultuske
0
80
Member Avatar for ali11

and what exactly is your question? 1. decide what kind of gui you want 2. check what frameworks or libraries you'll need 3. read up on some tutorials 4. start coding if you have some problems with the code, ask them, but don't expect us to completely write a GUI …

Member Avatar for stultuske
0
277
Member Avatar for gahhon

you're making it way to difficult on yourself ... why creating an entire class to deal with the basic functions of an array, which you can take care of with about 3 or 4 lines of code in your main class?

Member Avatar for gahhon
0
202
Member Avatar for vaironl
Member Avatar for pavani2006

[quote=pavani2006;369806]sorry i am not trying to find the given string is palindrome or not,i am trying to find from a given string is it possible to form a palindrome or not? suppose u input "oppa" from this string it is possible to from a palindrome "pop" but if u input …

Member Avatar for JamesCherrill
0
225
Member Avatar for Aviras

so, if I understand this correctly, you have something like HostileArea > containing a row of DungeonRoom objects and DungeonRoom extends HostileArea ? well ... the first element can't make the second element of your row perform an action, you'll need the actual second element to do that. what do …

Member Avatar for JamesCherrill
0
223
Member Avatar for buskerott

what exactly is your question? if this is the "right way" to store "user info"? that would depend on what info you want to store and how you are planning to use it. what you have shown above has nothing to do with storing user info, you're just creating an …

Member Avatar for JamesCherrill
-1
212
Member Avatar for lwisnas

[QUOTE=hiddepolen;1670506]Use a do {} while (); loop. Pseudo-code: [CODE] String input; do { input = getInputFromUser(); } while (input != 'n' && input != 'y' && input != 'Y' && input != 'N'); doWhatEverYouWant(); [/CODE][/QUOTE] ignore this answer. the logic might look correct, but, and here 's a very big …

Member Avatar for hiddepolen
0
108
Member Avatar for solarmotion

you're trying to call a setter method on a NULL-value. you have to instantiate your film object before you can use it. just check your Addfilm method: [Code=Java] public static void AddFilm(Entity[] film){ for(int i=0; i<film.length; i++){ if(film[i]==null){ Scanner scn=new Scanner(System.in); System.out.print("Enter film's code :"); film[i].setItemCode(scn.next()); System.out.print("Enter film's title :"); …

Member Avatar for Prateek nandan
0
419
Member Avatar for eziekiel123

what can be change number to letter? I don't really understand what you're asking here

Member Avatar for JamesCherrill
0
234
Member Avatar for nick6987

and since you reuse the name currentPrompt and use MenuOptions as name for your enums, I suggest you drop currentPrompt in the line JamesCherrill mentioned

Member Avatar for stultuske
0
151
Member Avatar for rotten69

acquiring a good knowledge of a technique requires time, whether it is Swing or any other framework. if time is your main issue, I would (very much against my own advice) use NetBeans, it can generate the Swing parts for you. but, mind this: you will be able to 'present' …

Member Avatar for ceyezumma
0
431
Member Avatar for Laxman2809

no, your array most definitely is supposed to be in your test-class. otherwise, for each event you're creating, you're creating a new Array of n elements. you've had your classes extend SocialEvent, which is a very good way to start. now, create the SocialEvent[] array .. in your testclass. each …

Member Avatar for stultuske
0
121
Member Avatar for Neversleepin

well ... you read your file, store the contents (for example) in an ArrayList. then, you iterate over that list and you perform the replaceAll method on the elements of this list. afterwards, you can store the contents in that arraylist back into the file. but, if I were you, …

Member Avatar for stultuske
0
1K
Member Avatar for 2k9-it

wellll ... there's a tricky one, since they don't really use the same characters. as far as unicode is concerned, I've worked with the ICU4J library, but can't say much about farsi or arabic. it may be enough to use this library, but I'm not sure about that

Member Avatar for stultuske
0
79
Member Avatar for AQWst

[QUOTE=zenStone;1668938]dis s Zen , please help me to mke program in java that has GUI its hard for me to mke coz i can't understand... please give me some tips thank you!!! this is my project and I can't think well coz I'm sick....[/QUOTE] Zen ... first of all, if …

Member Avatar for stultuske
0
421
Member Avatar for Nathan_11

well, you have the amount of elements in the array (10), so, you know that the indexes of your array will vary from 0 to 9. create an empty array of ten elements write a method that returns a random number between -1 and 10 (so including 0 and 9, …

Member Avatar for stultuske
0
142
Member Avatar for Onlineshade
Member Avatar for stultuske
0
82
Member Avatar for gyno

so ... what code is there in your methods? would be able to give us a hint of what your code is doing. just saying: [Code=Java] public class UseEmployee{ public static void main(String []args) {codes} } public class UseDir{ public static void main(String []args) {codes } } [/Code] doesn't really …

Member Avatar for gyno
0
110
Member Avatar for johnarzoneecho

and what do you mean by asking US about the project YOU are working on? do you think we know more about it than you do?

Member Avatar for Ezzaral
-2
169
Member Avatar for vbmore

[QUOTE=javaflasher;1664771]hey dude!! i know no one cares about this thread but people who search on google about insertion sorting it might be helpful to them!! its for them not for this thread!! GOT IT[/QUOTE] hey "dude", JamesCherrill is right. If you have found thé way to do this task, no …

Member Avatar for peter_budo
-1
242
Member Avatar for i2u2me
Member Avatar for twinkle2011

propably the point of this exercise is for you to figure out the obvious: why this code isn't working and to correct it. it is very, very basic to declare a variable. if you are taking a programming class, chances are this is about the first thing you've learned about, …

Member Avatar for stultuske
0
86
Member Avatar for niamul

[QUOTE=jeanrlavoie;1656417]Hi all, one of you guys answered the question in page 2, but everyone ignored it :P Here is an exemple of what he was saying. You can't technically switch on String[/QUOTE] you do know that Java 7 was released, and in Java 7 it ís possible to use a …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for Ranek

another reason would be that it's mainly a request for code. have you tried to implement it yourself? do you have enough background in Java to try it yourself?

Member Avatar for Ranek
0
180
Member Avatar for ynwa

[QUOTE=JeffGrigg;1659957]Personally, I would let the exceptions kill the program, rather than just ignoring them. Like this: [CODE] import java.awt.image.*; import javax.imageio.ImageIO; import java.net.*; class Blur1 { public static void main(String[] args) throws Exception { float[] matrix = { 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, }; BufferedImage sourceImage …

Member Avatar for stultuske
0
609
Member Avatar for kweigand

a NullPointerException means that the value you are trying to use does not exist. check your variables, where they are used and where you give them a value. that might help you find the problem

Member Avatar for kweigand
0
175
Member Avatar for Maureen

[QUOTE=ohyeah;579950]brilliant[/QUOTE] that you can't read dates? mwa, not so astonishing. about Sandwiches99, if you know you're 4 years late... why still post?

Member Avatar for manjushreekaran
0
3K
Member Avatar for selma_aktra

as for the exception, java doesn't support mp3 by default, you would need to get (or write :) ) packages that do that for you. wav files don't give errors, because they are supported

Member Avatar for selma_aktra
0
235
Member Avatar for PHkiDz
Member Avatar for Duki

[QUOTE=NormR1;1638836]What class is the Equal() method in? I've never seen it. Why are you posting code that does not exist?[/QUOTE] sorry, ment to 'up' your answer by one

Member Avatar for peter_budo
0
197
Member Avatar for newbie14
Member Avatar for aldeene

or you could browse the Oracle website for their tutorials, they're bound to have the best tutorials for basic implementations and behaviour of java applications.

Member Avatar for Anuradha Mandal
0
149
Member Avatar for Upoma

as licenses are concerned: random generator might do. if you want only those who paid for a license to be able to use it, link a username and a serial nr in a db you control, and put a check in the application, that checks whether or not the users …

Member Avatar for Upoma
0
259
Member Avatar for vishal1949

I assume he's just trying to get the hang of extending and implementing interfaces and classes, in a course he's following.

Member Avatar for Ezzaral
1
350
Member Avatar for dhija22

can you be just a bit more specific?? what do you want? to get a single element? or to return the entire array? and how is the array stored in your object? is it an instance variable? or is it for instance a static array containing info?

Member Avatar for NormR1
0
1K
Member Avatar for rotten69

what I assume you have been looking at, is a simulation of such vending machines. they are used to learn how to create a bit more extended applications than the basic "Hello world!"

Member Avatar for peter_budo
0
201
Member Avatar for anand01

The End.