775 Posted Topics
Re: 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] | |
Re: [URL="http://www.daniweb.com/software-development/java/threads/415389"]Duplicate post[/URL] | |
Re: 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? | |
Re: @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] … | |
Re: [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? | |
Re: [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 | |
Re: Sorry but this isn't a 24/7 coding service If you need help then do your part and we'll do ours | |
Re: What have you coded so far? | |
Re: 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 … | |
Re: 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 | |
Re: [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 } … ![]() | |
Re: C, Java, CSS and HTML (not sure about the web development languages since its been a long time since I coded one) ![]() | |
Re: [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 … | |
Re: 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] | |
![]() | Re: yes we can help What have you coded so far? What part are you having problems with? |
Re: [QUOTE=subith86;1769836]Common mistake that everybody makes. :) Line 21 : use "&" in scanf[/QUOTE] the same with line 27, 35 and 44 :) | |
Re: the setColor should be in the paint method | |
Re: 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 … | |
Re: [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 … | |
Re: --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. | |
Re: [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 | |
Re: pass the arrCam array to calculateTotInvent method | |
Re: 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] | |
Re: @ line 161 you forgot the semicolon [TEX](;)[/TEX] then declare the variables at line 163-166 before using them like in line 158-161 | |
Re: 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] | |
Re: put the user input lines inside the loop otherwise the value of menu will never change | |
Re: 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] | |
Re: [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 | |
Re: Edit: just noticed that the do while should be in the method | |
Re: 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 … | |
Re: Hmmm... why hasn't anyone suggested [URL="http://www.geany.org/"]Geany[/URL] ;) | |
Re: 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 … | |
Re: 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 … | |
Re: [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] | |
Re: [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 | |
Re: 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 | |
Re: did you download the appropriate header files? | |
Re: 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] | |
Re: 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] | |
Re: 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 | |
Re: Is there a finish method in the other codes? If so put it in this class too or just create a method finish() | |
Re: [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 … | |
Re: Here's a link for the text color [URL="http://www.roseindia.net/tutorial/java/swing/showtextcolor.html"]text color[/URL] | |
Re: What have you gotten so far? Is there a specific problem with the code or you haven't started yet? | |
Re: 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? | |
Re: Did you try to search through Google before asking that question? |
The End.