775 Posted Topics

Member Avatar for Sommy

How about using threads for multiple events or actions that need to occur at the same time. [URL="http://www.javaworld.com/javaworld/jw-04-1996/jw-04-threads.html"]http://www.javaworld.com/javaworld/jw-04-1996/jw-04-threads.html[/URL] [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.html"]http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.html[/URL]

Member Avatar for NormR1
0
279
Member Avatar for MichaelCJ10

[URL="http://www.daniweb.com/software-development/java/threads/415389"]Duplicate post[/URL]

Member Avatar for stultuske
0
301
Member Avatar for MichaelCJ10

1. You should have posted in the [URL="http://www.daniweb.com/software-development/java/9"]Java Forum [/URL]for experienced Java users to see this post 2. Why make a [URL="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/415280"]duplicate thread[/URL] about the same problem with your last thread? 3. Are the suggestions in the other thread not helpful?

Member Avatar for MichaelCJ10
0
333
Member Avatar for MichaelCJ10

@jbennet Shouldn't this be moved in the java forum? @MichaelCJ10 [CODE]while (counter<total.length) { counter++; ... [/CODE] When you start your while loop you immediately started with an increment to the counter which caused it to use the next element instead of starting with wages[0] Next [CODE]final int TOTAL_LENGTH=11; //declare constant[/CODE] …

Member Avatar for zeroliken
0
321
Member Avatar for ujjwale

[QUOTE]How to we know that there is the error of javac[/QUOTE] Is it an error with a program or with you using javac itself?

Member Avatar for javalover
0
138
Member Avatar for XTMercenary
Member Avatar for rereni

[QUOTE]is it possible to create new 1D array from 2D array?[/QUOTE] yes [QUOTE]How to create new array from array 2D member?[/QUOTE] iterate over the 2d array and save the desired values from the 2d array to the new array

Member Avatar for JamesCherrill
0
173
Member Avatar for rammohanrao

Sorry but this isn't a 24/7 coding service If you need help then do your part and we'll do ours

Member Avatar for stultuske
0
126
Member Avatar for varul7
Member Avatar for AbdullahJava

Since the code have been handed down to you we might as well go with it :-/ Anyway did you notice those those commented lines with tells when all three words are the same Try to modify the code so that it will first check if all the words are …

Member Avatar for stultuske
0
168
Member Avatar for kris222
Re: help

if you want to find a particular character and then replace a particular position first you should convert the string to char array then iterate over the character array and change the character you want to

Member Avatar for stultuske
0
98
Member Avatar for bela_code

[QUOTE=ztini;1770669]psh, come at me bro: [CODE]package i.r.teh; import java.util.*; class car { Map<String,String>args =new HashMap<String,String>(); void addargs(String arg, String Arg) {args=new HashMap<String,String>();args.put(arg,Arg);} String gimmeargs(String arg) {args=new HashMap<String,String>();return args.get(arg);} public String toString() {return "I make go do fast";} public static void main(String[] args) {i.r.teh.car c = new i.r.teh.car();c.addargs("make","rawr"); // etc } …

Member Avatar for ztini
0
437
Member Avatar for jackbauer24

C, Java, CSS and HTML (not sure about the web development languages since its been a long time since I coded one)

Member Avatar for diafol
0
238
Member Avatar for wildplace

[QUOTE]if any would recommend some good tutorials would be great[/QUOTE] [URL="http://lmgtfy.com/?q=pipe+and+fork+tutorials+C%2B%2B"]Did you try searching the web about this?[/URL] [QUOTE]today my teacher told us to use pipe and fork to write a program without teaching us anyway[/QUOTE] This might sound rude but if this happened to me I'd petitioned to have …

Member Avatar for vimalseo
0
127
Member Avatar for scarcella

How about the read me threads at the top of the C++ forum [URL="http://www.daniweb.com/software-development/cpp/threads/70096"]http://www.daniweb.com/software-development/cpp/threads/70096[/URL] [URL="http://www.daniweb.com/software-development/cpp/threads/67837"]http://www.daniweb.com/software-development/cpp/threads/67837[/URL]

Member Avatar for Keeame
0
153
Member Avatar for glebovg

yes we can help What have you coded so far? What part are you having problems with?

Member Avatar for zeroliken
0
266
Member Avatar for Silver-Eye

[QUOTE=subith86;1769836]Common mistake that everybody makes. :) Line 21 : use "&" in scanf[/QUOTE] the same with line 27, 35 and 44 :)

Member Avatar for zeroliken
0
165
Member Avatar for bearcoyote1
Member Avatar for vmehta91

It's a practice to always declare variables at the start of the program Don't initialize the strings s and f inside an if statement initialize them from the start and remove all the declarations in the if statements [QUOTE] Why can I not use a string created during an if/else …

Member Avatar for JamesCherrill
0
942
Member Avatar for scarcella

[QUOTE]the terminology and logical or theory side of programming.[/QUOTE] As in general programming? well this is a long and broad topic and in any case being in a computer science or a related course will give more information about this, how about an online course :) As for me I …

Member Avatar for deceptikon
0
118
Member Avatar for irre

--var is predecrement where var is decremented [B]before[/B] being used and var-- is postdecrement where var is decremented [B]after[/B] being used.

Member Avatar for WaltP
0
153
Member Avatar for Susmita_Sikder

[QUOTE]when i want to enter value the emp_name,basic are skipping[/QUOTE] It wouldn't skip if you enter a single character because they have a [B]char[/B] datatype... try string

Member Avatar for zeroliken
0
161
Member Avatar for TrickyT
Member Avatar for dennysimon

Here's a link that might help [URL="http://www.java2s.com/Code/Java/Swing-JFC/AsimpledemonstrationoftextalignmentinJLabels.htm"]http://www.java2s.com/Code/Java/Swing-JFC/AsimpledemonstrationoftextalignmentinJLabels.htm[/URL]

Member Avatar for zeroliken
0
71
Member Avatar for bluealein56

@ line 161 you forgot the semicolon [TEX](;)[/TEX] then declare the variables at line 163-166 before using them like in line 158-161

Member Avatar for zeroliken
0
811
Member Avatar for TIM_M_91

Here's a link with a similar topic which might help you [URL="http://www.daniweb.com/software-development/java/threads/187946"]http://www.daniweb.com/software-development/java/threads/187946[/URL]

Member Avatar for TIM_M_91
0
196
Member Avatar for kahheng93

put the user input lines inside the loop otherwise the value of menu will never change

Member Avatar for kahheng93
0
148
Member Avatar for desup

check the [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html"]ArrayList class[/URL] or [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Vector.html"]Vector class[/URL]

Member Avatar for desup
0
155
Member Avatar for caltech

[QUOTE]The number of accidents in a year cannot be negative, so only a value of 0 or greater is an acceptable input.[/QUOTE] how about an if statement or a loop where if the user inputs a number less than 0 then the user must input another number

Member Avatar for caltech
0
242
Member Avatar for carolinatech
Member Avatar for zeroliken
0
286
Member Avatar for techyworld
Member Avatar for kahheng93

use a loop where the condition is while the user doesn't enter a specific number it will continue to loop and insert it around the user input and switch case example: [CODE]while(menu != 4){ printf("Please choose your menu: "); scanf("%d", &menu); switch(menu) { case 1: quiz(); break; //don't forget to …

Member Avatar for kahheng93
0
164
Member Avatar for M.Waqas Aslam

Hmmm... why hasn't anyone suggested [URL="http://www.geany.org/"]Geany[/URL] ;)

Member Avatar for M.Waqas Aslam
0
177
Member Avatar for linezero

Ah I see he exactly copied the code from the link I provided as an example in the other thread yet he didn't even bother to check the comments about that code... My intention was just to show him just an example of how a phone book program could possibly …

Member Avatar for savoie
1
23K
Member Avatar for xcrypted1

in your previous code [CODE] public CircleComponent(Point2D.Double point) { circle = new Circle(200, 200, 100, Color.BLACK); final double SMALL_RADIUS = 3; Color color; if(Circle.isInside() == true) color = Color.GREEN; else color = Color.RED; smallCircle = new Circle(point.getX(), point.getY(), SMALL_RADIUS, color); }[/CODE] @ line 7 Java is case sensitive that would …

Member Avatar for xcrypted1
0
2K
Member Avatar for Murphyv10
Member Avatar for jarograv

[QUOTE]once I figure out how to open the image[/QUOTE] For basic image handling I suggest the Toolkit class here's a tutorial [URL="http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html"]http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html[/URL]

Member Avatar for Philippe.Lahaie
0
191
Member Avatar for kishor.R

[QUOTE=kishor.R;1765555]create the bank account task using structure and Files concept in c.[/QUOTE] In what way may we help you... other than do the homework for you

Member Avatar for zeroliken
0
43
Member Avatar for bo0ga

Guys you could have just simply used the flag bad post button on the left side of the post to get a mod's attention to get this thread moved to the web development forum, there's no need to argue about this

Member Avatar for zeroliken
0
121
Member Avatar for franmaez_0716
Member Avatar for xcrypted1

Is it required to use maxChoice or is it not really necessary cause you did not refer to it for the process? plus you did not use these variables too [CODE]int choiceA = 1; int choiceB = 2; int choiceC = 3; int choiceD = 4;[/CODE]

Member Avatar for stultuske
0
200
Member Avatar for jackbauer24

If you want to have multiple Jpanels and use a Button to show one at a time the I think you should use [URL="http://docs.oracle.com/javase/tutorial/uiswing/layout/card.html"]CardLayout[/URL]

Member Avatar for zeroliken
0
309
Member Avatar for mcz2012

a lot of members will hate you If you go around posts telling them to mark their threads as solved while you have no proper contribution for the thread's solution, they'll think you just want to get your solved counts up like a parasite

Member Avatar for dantinkakkar
0
128
Member Avatar for adil_bashir
Member Avatar for Vladnaka

Is there a finish method in the other codes? If so put it in this class too or just create a method finish()

Member Avatar for crimsondawn
0
876
Member Avatar for FUTURECompEng

[QUOTE] If anyone has a more efficent idea to compare 25 variables than the use of many if statments feel free to post it[/QUOTE] Could you post the part of the program where you use those 25 variables so we can have a better idea on how to the program …

Member Avatar for FALL3N
0
298
Member Avatar for wallet123

Here's a link for the text color [URL="http://www.roseindia.net/tutorial/java/swing/showtextcolor.html"]text color[/URL]

Member Avatar for wallet123
0
87
Member Avatar for linezero

What have you gotten so far? Is there a specific problem with the code or you haven't started yet?

Member Avatar for zeroliken
0
958
Member Avatar for Valiantangel

It's not really a bug, the modulus is doing whats its suppose to do are you trying to make the program display 0 when 30 or a similar case is entered?

Member Avatar for zeroliken
0
83
Member Avatar for ayub05
Member Avatar for gurukid22
0
144

The End.