- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 33
- Posts with Upvotes
- 27
- Upvoting Members
- 23
- Downvotes Received
- 8
- Posts with Downvotes
- 7
- Downvoting Members
- 6
- Interests
- software
176 Posted Topics
Re: Hey mags11, your PersonalInformation class looks good to me. However, your demo is wrong. You still make no use of your PersonalInformation class inside your demo. Here I will put some comments in your code and let you know what is worng. [CODE] Name startName = new Name("Ewan McGregor");//Name is … | |
Re: I have some ideas, too. One, create an app that solves sudoku puzzles. you give it a situation, and then it solves it. You can create a GUI to make challenging your app with a sudoku puzzle easier. Two, create an app that seeks, finds, and shows all ways of … | |
Hi there, I am having difficulties with integrating [datatables](http://datatables.net/). Somehow, my data is being lost/weirdly modified when putting it in my response variable. foreach($aaData as $aData) echo "-".$aData."<br>"; foreach($aaData as $aData) $response['aaData'][] = $aData; My first foreach loop outputs data, and what I see is what I expect. However, when … | |
Hi guys, I am using tinyMCE editor. In my textarea, I want to let user type some html like <table></table> and store that in db just like that, <table></table>. However, what I am getting is: <table></table> Now, if I go to the edit form for the item that contains that … | |
Re: hey there, your base case is more than selectedWith == 0. Like what if selectedWith is not zero, but your current author has no co authors? Then, why are you passing around scholarNeighborhood? Sounds like scholarNeighborhood will hold the result. You can certainly pass it around and be within the … | |
hey there, I am looking at a maven project that makes use of another maven project. say project A and project B. In context.xml in project A, I see these two lines <value>classpath:oneFile</value> <value>classpath:otherFile</value> I have been trying to figure out what is the actual value of classpath, so what … | |
![]() | Re: I am not sure that I can help you much about reporting, but I think you should use Derby for database. It's easy to make use of, and as of Java, I think 7, it ships along with Java SDK. it is an embedded DB like sqlite, but is easier … ![]() |
Re: I have encountered this same issue once, and I happened to have access to someone that other people told me is a guru at the time. And I do take that guy for a guru, but this exact question puzzled him also, so all you much respected Java Forum helpers … | |
hey there, in a project I am involved, someone put a test class in main code. eclipse would not find the bug but mvn, not that in eclipse, would report a compile error, and we found the bug. because of that, I wanted to build my new maven project without … | |
Re: ...however, I would love to see the code JamesCherrill. Not only because it is code that I would like to make use of, but also to see your code as I am sure I'd learn something since I have been getting quite some help from you last 3 years. thanks … | |
Ok, I am trying to build a jar file and I cannot seem to find my way around. I have attached an image to this thread to show my directory structure. Now, I am navigating to my MultiProjectManagement directory and creating my manifest.txt file with: echo Main-Class: multi.project.management.panels.ProjectListPanel > manifest.txt … | |
Re: hey Pobunjenik, sta ima? Alright, I am not sure I understand exactly what it is you are having problems with, but I think I found another bug in your code. This method: public Player addPlayer(String soldierName) { this.allPlayers = new ArrayList<>(); Player P = new Player(); P.setName(this.name + soldierName); allPlayers.add(P); … | |
hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions. In pure SQL, I'd just write : "select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id" however, the only way I managed to write … | |
Hey there, I have a question regarding the builder pattern that I need someone with more experience to clarify for me. I have this User class that has an inner, public static Builder class that has the same fields as User as well as the corresponding setter methods. Now, the … | |
Re: hey jacksonbird03, please see the two topmost threads in this java forum for projects for java beginners and resources to start java, first and second threads correspondingly. | |
hey there, I have created this simple app that makes use of a Robot instance. It is a network app that I control using telnet. I have tried it in two different computers. It works fine. However, in one of my computers, I manage to start my robot app through … | |
hey there everyone. I hope you're all well. Alright, I am working on testing a project using Selenium. I know that this is a Java forum and not a Selenium one, but I am used to using this one so I am starting here. Plus, I am very confident that … | |
Hey there, I need help with writing a query so I figured I'd ask here. Let me thank you in advance for your answer. I need to see how often a value inside a certain column appears in a table. Say for example I have a table Person, that has … | |
Re: in cmd you navigate to whatever directory you have your .java files in. to compile a specific file with name Name.java, in cmd you type the following (without quotes): "javac Name.java" to run the program, you type: "java Name" however, you need to have your environment variables set well so … | |
hey there, I have two classes with a one-to-many relationship. For ilustration: public class Customer { Business business; Date created; } public class Business { } Now, when I do the following: new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName()) it works perfectly fine. However, when I include filtering based on created field … | |
Re: hey yyzdslr, because you are lazy to copy paste your code and let us know what error you are getting, you gave us links to follow... but we too are lazy to follow the links and copy your code, with line numbers included, and compiling it. at least do that … | |
Hello everyone, I am puzzled... when I run a JUnit test, there is no main method in the class and it still runs. Alo, a java/maven web app does not have a main anywhere. My assumption is that it is hidden somewhere on some class I somehow extend or something. … | |
Hey there, I have a jsp page and a checkbox inside it: <input type="checkbox" name="some" onchange="test()">Check me</input> I also have this function: function test() { out.println("checkbox checked status changed"); } I want the function test to be invoked every time I check/uncheck my checkbox. It is not working. Since I … | |
Hey there, I need help with a query. The typical situation is like this: I expect, say, 1000 rows out of a query that is based, say, on lastName column. One column is, say, firstName. I know I only have like twenty unique names that occur on multiple rows. I … | |
Re: you sound like you have problems accessing the files no matter where you place them, and not with where exactely to put them. I do not know about netbeans... but if you are having difficulties with accessing your files, first thing that comes to mind is that you have paths … | |
alright, I have been aware of private, protected, and public access modifiers but just this week I discovered that there is also the default access modifier in Java. In case none of the three p-- modifiers is mentioned in a method header or field declaration, they seem to have the … | |
Re: I see people that are usually active and have been active just a few minutes ago, while your post is 4 hours old and they haven't tried to help you. That is because you have provided no code or shown any effort of yours. The guys here don't do other … | |
Hey there, I have the following code: int[] x = new int[7]; System.out.println(x.lengnth); x.length = 10; System.out.println(x.length); Of course, line three causes a "cannot assign a value to final variable length". However, line one does assign seven to that variable, length. Now, I have written a Testing class where I … | |
Re: you can use create a web service for that. Build a data access object on your server, make it available via a web service, and access it from anywhere as long as you have internet. | |
Re: I would also like to share this code. public class SomeClass { public int compareNums(int a, int b, int c) { return compareNums(compareNums(a, b), c); } public int compareNums(int a, int b) { if(a < b)return a; else return b; } } | |
Re: this what you have here would actually diverge. you need to make some changes to either i, k, or both to make sure that i < m(k - 1) would eventually turn false (if it already is true) so that you get out of your while loop. anyways, you can … | |
Re: I think you need to set jscrollpane's size first | |
Re: let me try: let as say you want to multiply 5 with 6. upon first invocation of the method, add 5 to the first input param (that is five), and subtract one from 6. do this as long as the second param is bigger than 1. this, I believe, would … | |
Hey there, I have these three tables: A, B, and C. A has a one-to-many relation with both B and C. Right now, what I am doing is: I run a select query on A. I put the results on an array, lets say aArray. For each row in the … | |
Re: I'm having this same issue. I do not want to highjack the thread, but neither am I sure I should start a new thread for the same problem. If a moderator thinks it is better, then I guess they can remove my reply or something. I have this (a comment … | |
Re: well, go back and use arrays first. that way, you will be able to: once the button holding the x is clicked, change it's label to "", generate a random number between 0 and the size of your array of buttons, and when you get this number, change the the … | |
Re: stultuske, I thought once there is no reference to an object anymore, the object is destroyed... in that case, how would "asd" be referenced again? by recreating it? or am I missing something? | |
hey there, I am trying to set up tomcat on my computer (I am so new to this, I am not even sure I am explaining my problem correctly.) I was told to install XAMPP. I did using the installer that appache's web site offers. It says that the installer … | |
I believe the title of my thread explains what I am trying to do... I have a .class file, I need to look at the code has generated the .class. is this possible, and if yes, can you tell me how? | |
Re: are you sure your code inside your for loop is correct? ok, I'm sorry. that line is correct but a little redundant... | |
Re: you can have conditional sql statements that say something like: CREATE TABLE IF NOT EXISTS... or create database... in that case, you are sure that the database will be created if it does not exist and you won't have to include a .db file, which you can do if you … | |
Re: you are in the java forum. my first suggestion, move to c++ forum as you need help writing c++ code. | |
Re: I could be wrong but BranchGroup inside javax sounds doubtful. javax is a standard java library and it does not contain a media class. if it is to contain it, you should download that. look online for javax.media library. | |
Hey there, I am trying to build an application that listens to my mouse. once I click on my panel, it reads the x, y coordinates of the point I clicked on. Second time I click the panel, it reads the x, y coordinates of this other point and draws … | |
hey there, I have some images that I want to use instead of checkboxes in an application I am building. The images consist of two images. Yes, the two images inside an image are the same except for the background color. One color would indicate when the option the image … | |
Hey there, the following is what I get when I perform a typical query on my database: +--------+----+---+---+----------+ | length | id | l | p | username | +--------+----+---+---+----------+ | 50 | 12 | 1 | 1 | bibiki | | 50 | 12 | 1 | 2 | … | |
Re: your lines ten and eleven are wrong. you again have typos. you have some single quotes and brackets missing. In addition, you have nothing happening between these two lines. In that case, line 10 is useless. insert an (echo $sql) statement after these two lines and see what you are … | |
hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { … | |
Re: one of the three constituents of the criteria in the following sql query results to no query (at least one): [CODE] $sql = ("SELECT * FROM sc_users WHERE username = '$myusername' and password = '$mypassword' and isadmin = 1 ;"); [/CODE] either you have no user with username gatekeepr (which … | |
hey there, I need an idea on how to store some information in a database. Let us assume that I want to build an application that allows a user to record what bars he visited each day. The number of bars is variable, and a user typically visits more than … |
The End.