Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
33
Posts with Upvotes
27
Upvoting Members
23
Downvotes Received
8
Posts with Downvotes
7
Downvoting Members
6
6 Commented Posts
~105.06K People Reached
Interests
software
Favorite Tags

176 Posted Topics

Member Avatar for mags11

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 …

Member Avatar for David W
0
16K
Member Avatar for JamesCherrill

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 …

Member Avatar for Alok_5
20
3K
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
223
Member Avatar for bibiki

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: &lt;table&gt;&lt;/table&gt; Now, if I go to the edit form for the item that contains that …

Member Avatar for bibiki
0
986
Member Avatar for CheerfulBiscuit

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 …

Member Avatar for JamesCherrill
0
253
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
187
Member Avatar for Morley93

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 …

Member Avatar for 1stDAN
0
262
Member Avatar for TokamakFusion

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 …

Member Avatar for bibiki
-2
465
Member Avatar for bibiki

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 …

Member Avatar for peter_budo
0
173
Member Avatar for Vaspar

...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 …

Member Avatar for JamesCherrill
0
712
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
185
Member Avatar for Pobunjenik

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); …

Member Avatar for Pobunjenik
0
478
Member Avatar for bibiki

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 …

0
86
Member Avatar for bibiki

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 …

Member Avatar for bibiki
1
161
Member Avatar for jacksonbird03
Re: Java

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.

Member Avatar for bibiki
0
89
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
140
Member Avatar for bibiki

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 …

0
76
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
164
Member Avatar for anisha.silva

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 …

Member Avatar for stultuske
0
214
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
142
Member Avatar for yyzdslr

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 …

Member Avatar for JamesCherrill
0
313
Member Avatar for bibiki

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. …

Member Avatar for bibiki
1
128
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
158
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
146
Member Avatar for harinath_2007

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 …

Member Avatar for harinath_2007
0
91
Member Avatar for bibiki

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 …

Member Avatar for JamesCherrill
0
160
Member Avatar for akosivivas

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 …

Member Avatar for radhakrishna.p
0
190
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
915
Member Avatar for mc.hitch

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.

Member Avatar for bibiki
0
322
Member Avatar for mukiibi

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; } }

Member Avatar for bibiki
0
225
Member Avatar for sobias

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 …

Member Avatar for doomsday1216
0
177
Member Avatar for hwoarang69
Member Avatar for sobias

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 …

Member Avatar for sobias
0
1K
Member Avatar for bibiki

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 …

Member Avatar for nduduzo
0
286
Member Avatar for rajesh1158

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 …

Member Avatar for bibiki
0
682
Member Avatar for wilddrummer

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 …

Member Avatar for NormR1
0
235
Member Avatar for kathir100

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?

Member Avatar for JamesCherrill
0
256
Member Avatar for bibiki

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 …

Member Avatar for mahadeb
0
2K
Member Avatar for bibiki

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?

Member Avatar for stultuske
0
231
Member Avatar for nyfan68

are you sure your code inside your for loop is correct? ok, I'm sorry. that line is correct but a little redundant...

Member Avatar for nyfan68
0
191
Member Avatar for vishnukumar

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 …

Member Avatar for vishnukumar
0
728
Member Avatar for #include <lou>

you are in the java forum. my first suggestion, move to c++ forum as you need help writing c++ code.

Member Avatar for nydriek
0
4K
Member Avatar for FALL3N

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.

Member Avatar for FALL3N
0
987
Member Avatar for bibiki

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 …

Member Avatar for NormR1
0
154
Member Avatar for bibiki

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 …

Member Avatar for JorgeM
0
78
Member Avatar for bibiki

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 | …

Member Avatar for bibiki
0
166
Member Avatar for SQLpower

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 …

Member Avatar for Biiim
0
2K
Member Avatar for bibiki

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) { …

Member Avatar for bibiki
0
112
Member Avatar for SQLpower

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 …

Member Avatar for bibiki
0
236
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
142

The End.