- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
26 Posted Topics
Hi I want to count the number of occurence of each characters in a string from a client then the server will compute the occurences and pass back to the client the result.You may have noticed that I used String for result coz im planning to send a string to … | |
Re: Another suggestion in order to ask for the numbers once is to ask the user to separate each number by a separator you prefer maybe a comma or a whitespace. Split the string using the separator. [code] String input = JOptionPane.showInputDialog("Enter the numbers separated by a comma:"); //split the string … | |
Re: Try to look on [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/table.html"]JTable[/URL] or [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/list.html"]JList[/URL] | |
Re: Try to click the component on the GUI Builder in Netbeans right click->Customize code. It will show you the generated code on that particular component. Also don't just rely on generated code because on some point you need to customize that code so it will meet your requirements. Better try … | |
Re: I'm not sure if this is what you want. Here is an example. We may have different implementation on fetching data but the point here is the abstraction so that your view does not know how the data are fetched. For the sake of completeness and clarity I added a … | |
Re: [CODE] import java.util.Random; public class Sequence{ public static void main(String args[]){ //loop counter int counter = 0; int randomNum; Random r = new Random(); do{ randomNum = r.nextInt(9); System.out.print(randomNum); counter++; }while(randomNum != 0); System.out.print("\nLength of the sequence was "+counter); } } [/CODE] Sample Output: 7176430 Length of the sequence was … | |
I have a Java Desktop Application I made and I am now on the process of deploying the application. I tried to use Java Web Start but came up with certain problems. My application is fully working when I start it locally or inside my IDE. But when I try … | |
Re: You can make an update function that updates your jtable everytime you add/remove employee. Call this function after you add or remove an item in your table. it might look something like this. [CODE] public void updateTable(JTable table){ DefaultTableModel model = (DefaultTableModel)table.getModel(); List<Employee> employees = employeeDao.getEmployees(); model.setRowCount(0); //empty your table … | |
I'm trying to populate our database using some curl command like curl --user username:password [url]https://somewebsite.com[/url] curl - d "name=New User Name&address=New User Address" [url]https://somewebsite.com/api/add/new[/url] The instructions that they gave to me uses curl but I want to do it in Java so I decided to use HttpClient here's my code … | |
I'm kind of confused about this. I want to create two threads that works in the same data. For example if I have an array of Strings then I want this two threads to work in each unique item say add a letter 'p' in each strings. My question is … | |
Hi I'm looking for a thesis topic and I came up with the idea but I want to consult some of you first if this might be done. Java Code Automatic Refactoring and Code Optimization. but I have read that this might be mutually exclusive because code optimization might make … | |
Hi I was tasked to create an admin panel which is more on database data manipulation. I want to use AJAX,XSLT, and PHP I've been studying a lot lately but most of the examples loads contains only a single page. Say I have navigation/menubar template I want to know how … | |
I want to know how will I pass this table values using a form. I have a list of products and each item belongs to a section and each section has different attributes. The attributes section are columns where the user can input a number of products he wants to … | |
I have this function [CODE] function displayOrderList() { $path = "file.csv"; $file = fopen($path,"r"); $row = 0; while (($column = fgetcsv($file,1024," "))!== false) { $row++; $price = $column[0]; $product =$column[1]; $productid = $column[2]; $price_id ="price".$row; $qty_id = "qty".$row; $total_id = "total".$row; echo "<tr align=center> <td><input type=\"text\" name=\"qty[]\" id=\"".$qty_id."\" value=\"0\" size=\"5\" … | |
Hi I have this table inside a form and in this form Im also fetching data from a csv file to display product informations in a table. I want a javascript code that when a user inserts a quantity value of the product he wants to buy the total column … | |
I have this table forum and topic and i want to query forumname, description, total topics in the Forum idk how to do this i tried an sql statement like this SELECT f.forumname,f.forumdesc,max(t.forum) as total_topics from Forum as f INNER JOIN Topic as t WHERE f.forumid = t.forumid; of course … | |
Re: if its a webserver this will help [url]http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-9.04-lamp[/url] another alternative is to use xampp for linux a.k.a. lampp [url]http://www.apachefriends.org/en/xampp-linux.html[/url] | |
Re: this might help [url]http://www.codeproject.com/KB/printing/printingwitherror.aspx[/url] | |
Re: you can also set the root directory of your server to www/2/ folder if your using Apache webserver edit the httpd.conf and change the root directory there. or you can also put your 3.php file in your www folder since that is your default root. | |
Hi my Prof. wants me to create a forum website from scratch. This forum contains only basic functionalities like creating a forum,a new thread in the forum, post a reply. So I created a database which contains these tables: Users Groups Forums Topics Posts now in my homepage I want … | |
I manually set-up a partition during my installation of Ubuntu 9.10. I only created a swap partition about 512mb and a root partition of 10gb and no partition for /home but I have a partition for all my data files. What I really want is a separate partition for programs … | |
Re: its also a good practice to have a getter and setter function. like if you want to set the car doors you can call car.setdoors(5); then if you want to know the the number of doors in a car you can then call a getter method. car.getdoors(); or you can … | |
Re: The split method splits the string to depending on the regex specified then converts the string into an Array of subtrings. Localps solution is almost correct except that the index where wrong it should be, System.out.println( "\nReversed name:" ); String[] Name = name.split( "," ); System.out.println(Name[1] +" "+ Name[0]); | |
Re: well it depends if you have your primary key say UserID INT AUTO_INCREMENT then all new datas are appended ex. if your last entry before you updated it is UserID = 100 then your new data entry should start with 101 to N where n = number of new data | |
Hi I need help on how to use LDR and ADC0804 in 8051 microcontroller. So far I have this in my project but I want to replace the switch with LDR (dark activated). What happens here (attached file)is that I use the switch to decrement/increment the number of cars and … |
The End.