199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Violet_82

Hi I am having problems running and compiling a program with more than one class, but I am not sure how to do it in netbean, it keeps complaining. I have the 2 following files called respectively Account.java public class Account { String name; String address; double balance; } and …

Member Avatar for Violet_82
0
300
Member Avatar for mIND.dEcEpToR

this is how my data in txt file: 1--2--3-- 3-4-4-5-- -7-3-4--- 7--5--3-6 --7---4-- 3-2--4-5- ------3-- 2-6--7--- 4---4--3- is my c# code to do file reading with the display too: public void populate_grid_by_file() { int counter = 0; string line; // Read the file and display it line by line. System.IO.StreamReader …

Member Avatar for tinstaafl
0
207
Member Avatar for Violet_82

Hi I am having some problem understanding the do-while loop in the following program, and I was hoping for some help: import java.io.File; import static java.lang.System.out; import java.util.Scanner; class DeleteEvidence { public static void main(String args[]) { File evidence = new File("c:\\cookedBooks.txt"); Scanner keyboard = new Scanner(System.in); char reply; do …

Member Avatar for Violet_82
0
200
Member Avatar for Violet_82

Hi all, I have recently built a website using wordpress and I have noticed that wordpress adds some classes to my html tags automatically. I asked for support in their forum, but nobody got back to me, so I was hoping somebody could she some light on this? SO I …

Member Avatar for Violet_82
0
243
Member Avatar for rodrigo.l.salazar.14

Hello so I finally was able to read intergers from a file and put them in an array. Now I have to put those numbers in different arrays. If they are even they go to the even array if odd go to the odd array. Now I thought this was …

Member Avatar for vmanes
0
181
Member Avatar for james19862012

Hello all, I'm drawing a blank on how I should proceed with the final steps in completing my website. I guess to sum it up is I would essentially like to let the users be able to submit something that shows up on the home page and stays there (this …

Member Avatar for AleMonteiro
0
174
Member Avatar for Magda6347

Hi I have a project where Im creating a bank account. In the bank account the user is supposed to choose either checkings or savings from a combo box. once that is selected and the user presses submit button the selection is supposed to show up under a label in …

Member Avatar for Ancient Dragon
0
112
Member Avatar for sofien.fkih

I did the coding to create a pie chart file in png format file, the pie chart shows the percentage but in the bottom of the file, I want the percentage to appear in the chart itself, This is the codes I have used, String query = "SELECT name,flag from …

Member Avatar for Taywin
0
459
Member Avatar for inaxassan

The human body has many organs (heart, lungs, brain, and kidney, to name a few). We could think of the human body as complex object made up of simpler objects (organ). a) Create classes for heart and brain. Think about what the functions of the heart and brain are in …

Member Avatar for TrustyTony
0
297
Member Avatar for jg1405

I am not seeing why this code will not generate the output to my JFrame after it takes the input from the text file? How can I tweak this code to do that? Take input from file and display it on JFrame... JTabbedPane jtpane=new JTabbedPane(); JPanel jpan=new JPanel(); JTextArea txt=new …

Member Avatar for jg1405
0
1K
Member Avatar for JohnMcPherson

I am working on a program in Pro*C that uses fscanf to read a CSV file. This is a naive CSV file, with no commas allowed in the strings, and it is packed, with no whitespace between the fields. I read in a header record, which has some important information, …

Member Avatar for deceptikon
0
957
Member Avatar for hwoarang69

is there a way to use real link in include? bc the code below doesnt work. it say cant use http. login.php <?php include("http://localhost/E_COMMERCE/INCLUDE/header.php"); ... ?> --------------------------------------------------------------------- header.php ... <link rel='stylesheet' type='text/css' href='css/main.css' /> ... ------------------------------------------------------------------------------- another way in login.php, i can do this code below. but the problem is …

Member Avatar for hwoarang69
0
157
Member Avatar for mjbor1

hello i have a problem in cin characters this is my code //file LE.h struct nodetype; const int SIZE=81; typedef char dataline[81]; typedef nodetype *nodeptr; class LED { public: LED(); ~LED(); void insert(dataline lines); void Delete();//delete currnt line void move(int num); int cnt();// To Find Number Of Nodes. void list(); …

Member Avatar for Ancient Dragon
0
134
Member Avatar for janguyo

Hi guyz , PHP newbie and this piece is givin me a hard time please Help, have indicated the source of the error with a comment <?php ob_start(); include("dataaccess.php"); ?> <?php $strAction = "list"; $num = ""; $strTable = ""; $strkey = ""; if(!empty($_POST)) { if (trim($strTable) == "" ) …

Member Avatar for pritaeas
0
187
Member Avatar for vegaseat

Python is entirely object oriented and using classes is made relatively simple. Beginners have a certain angst when it comes to using classes. There is a hump in the learning curve, which I like to overcome with this example. Inheritance really makes sense and saves you a lot of extra …

Member Avatar for Ene Uran
0
1K
Member Avatar for tealpenguin

I'm having trouble with a couple of things in my program. I want to create 3 different players and then record their scores to a file called highScores.txt I need to also come up with another game that features an array in it (i would put this in the place …

Member Avatar for NathanOliver
0
218
Member Avatar for kshahnazari

have a simple question about working with files . when Im reading a txt file like this example Hello how are you. fine thank you. when I read it how can I find out there was an endline or not ?

Member Avatar for deceptikon
0
113
Member Avatar for oneoderja

Your demo code is required to (DO NOT manually print out, write a FOR loop to do it) 1. print all white furniture 2. print the total cost of all furniture in the array. // How do i print these using my code: public class FurnitureDemo { public static void …

Member Avatar for JamesCherrill
0
224
Member Avatar for aravind326

Hi, I have a text file, which i need to make sure is not getting modified. I have to mail this file to people and the file should not be modified by anyone in transit. What would be the best way to accomplish this. Posting it here because I was …

Member Avatar for JamesCherrill
0
127
Member Avatar for axymak

Thanks you all in advance. I want to make a website showing the result of exams that are conducted in India. I want the user to enter his/her Roll Number in the form created at my website and as he/she press enter. His/her results should be displayed on the page. …

Member Avatar for veedeoo
0
1K
Member Avatar for Violet_82

Hi there, as I am learning java (providing I will have the time to keep going!) I was wondering if there is anywhere I can find some simple exercises to practice with. At the moment, as an introduction, I am reading a java for dummies book, so I am still …

Member Avatar for Violet_82
0
122
Member Avatar for MrsWhit

I have been working on this for a while and keep getting error after error. It seams like every time I fix something, I get an error for something else. This is the main class. import java.util.Scanner; //for scanner class public class ArrayOps { private int[][] numbers; //Holds a 2D …

Member Avatar for gavinflud
0
195
Member Avatar for marius2010

Need help with this code, it counts only the second after "And".And if it possible to do like if cell("2.3")<point reenter else Range.. Is it possible to do aritmetics with cells or do smth with other operators? Sub hugo() Dim point As Double InputBox ("Enter The Closing Point(Between 1.1-1.6)") If …

Member Avatar for tinstaafl
0
123
Member Avatar for albertkao

How to display text string with Javascript on screen? This is my test page: [CODE]<html> test <script type="text/javascript"> docwrite(1); document.write('hi'); docwrite('hello'); </script> docwrite(2); <script type="text/javascript"> function docwrite(x) { document.write(x); } </script> </html> [/CODE] I saw only "test docwrite(2);". I want to see "test 1 hi hello docwrite(2);" with " 1 …

Member Avatar for priakant
0
3K
Member Avatar for arcticman452

I have 2 JComboBoxes that are using an itemListener, right now the code I have compiles but when I call for tankSize and fuelCost to complete my calculations nothing is returned and my answer is always zero. What do I need to change so the variables transfer to tankSize and …

Member Avatar for arcticman452
0
133
Member Avatar for joshmac

I am getting the error message "Invalid argument supplied for foreach()". I can't see to figure out what. Below is my query. Is there something I'm missing? Thanks public function editRole($id) { $q = $this->_db->query("SELECT * FROM `" . TP . "roles` WHERE `ID` = '" . floatval($id) . "' …

Member Avatar for pritaeas
0
200
Member Avatar for charuwaka

**********************************please see the image first link given below********************************* I have made a crystal report to assign a database to it i created a module with following code and added this module to my form Imports System.Data.SqlClient Imports System.Data.Sql Module Module1 Public acscmd As New SqlCommand Public acsconn As New SqlConnection …

Member Avatar for john.knapp
0
469
Member Avatar for Zubenna

![GUI](/attachments/large/4/GUI.jpg "GUI") ![GUI](/attachments/large/4/GUI.jpg "GUI") My name is Nnamdi. I am a new member in this forum. I am learning Java programming and how to develop Java GUI application. In my learning process, I have encountered the challenge stated below. My question: I am writing an application to properly align the …

Member Avatar for Zubenna
0
878
Member Avatar for minitauros

Hey there. The situation is like this: 1. The user clicks a button. 2. Tooltip pops up. 3. The user clicks the button again OR the user clicks anywhere outside the tooltip. 4. The tooltip is removed. Now I can get either of the events described in step 3 to …

Member Avatar for minitauros
0
3K
Member Avatar for munchlaxxx

After you enter a name, it just prints out "Would you like to convert another name? (y/n) " it doesn't even give the user a chance to enter anything and it doesn't print out the converted name. It just ends...Why? #include<iostream> #include<string> using namespace std; void conversion(char name[]); void lowercase(char …

Member Avatar for Gonbe
0
2K
Member Avatar for ChrisHunter

Now then, It's not often I start a thread but I'm struggling to find the answer after a lot of tries on Google. The issue is that I have a "Profession" comboBoxCell as well as a "Discipline" comboBoxCell which is populated/ repopulated with a short list of disciplines dependent on …

Member Avatar for james6754
0
2K
Member Avatar for showman13

I was having issues getting this working 2 years ago and through posting in here, got it resolved... Now I have another related question to the same rewrite code... I haven't ever run into this issue til now, so didn't realize it existed... I need the rewrite rule to be …

Member Avatar for showman13
0
167
Member Avatar for mlesniak

I have a VB.NET application that has a site.master with a navigation menu in landscape format. In my default.aspx I have a multiview component. When I select the second view in my multiview the navigation menu momentarily changes to portrait format and then back to landscape format. Ideally, I would …

Member Avatar for JorgeM
0
178
Member Avatar for amith_ami

hi all.... please help me..... i want to download the files from server using php code. any help tnx in advnc........

Member Avatar for picassokaka
0
6K
Member Avatar for Lynne Good

I have registered new custom post types and used this filter to add to my blog homepage add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query()) $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) ); return $query; } Now that it is showing on …

Member Avatar for picassokaka
0
427
Member Avatar for cee_karthi

Hi ALL, Plz tell me how to retrieve data from mysql using vb.net as frontend. I created database in mysql and able to insert data from vb.net but i dont know how to retrieve data from mysql. Plz help me to perform this action. Plz post your reply for my …

Member Avatar for Reverend Jim
0
4K
Member Avatar for tingwong

Hi everyone, I have a project that creates a Train that pulls Boxcars. The boxcar is supposed to be generic type and have attributes such as load that adds only a specific type of object to the boxcar. The train is supposed to pull all boxcars created. I have written …

Member Avatar for JamesCherrill
0
340
Member Avatar for komabasi

write java programme, using DO and WHILE to approximate 22/7 (pi)= 4-4/3+4/5-4/7+4/9-4/11+4/13..

Member Avatar for subramanya.vl
0
480
Member Avatar for Despairy

(netbeans latest, windows 7) So, from what I understood, once I start a servlet program the html page with a form in it loads and I can debug the program only when I click the Submit button at the end of the form. if the form is doPost then by …

Member Avatar for Despairy
0
205
Member Avatar for vikarna

echo "show run" the above commands gives input to terminal of router and then displays output on terminal. i want the output of this specific command to be redirected to the file. please help me

Member Avatar for Watael
0
139
Member Avatar for yorro

My [B]first column does not align to center[/B], although the sub-columns aligns perfectly [CODE=vb] Listview1.Columns.Add("Column1", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column2", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column3", 100, HorizontalAlignment.Center) [/CODE]

Member Avatar for ImZick
0
1K
Member Avatar for lparkerito

Hi everyone, First time poster so please don't bite my head off. Basically, I'm having a site built for me and I don't really know anything about coding but I'm not too sure if I trust my web developer. I asked him recently about adding a feature where I could …

Member Avatar for lparkerito
0
119
Member Avatar for tsegaighere

Hey guys!!!I am a senior majoring in computing science and I was wondering If u have some ideas for my final year project which I plan to do in JAVA!!I was thinking of animating sth but I cant see how practical JAVA is for that!!! ANY IDEAS?????

Member Avatar for rotten69
0
336
Member Avatar for giovannitao

Hello, I'm developing a classified script, I want that each member can register, upload your ads and view it in your personal area. I create script for registration but I don't know how develop personal area, I think that I set 2 db: users and ads.

Member Avatar for rotten69
0
112
Member Avatar for Vijaysurya

Hai everybody, I need help in doctrine raw sql query, this query count not properly, $query = $db->prepare("SELECT count(p.friend_id) AS count , p.layer_id, l. * from layer l, people p where l.personal_id = :personal_id and l.id = p.layer_id "); layer_id friend_id 5 2 6 7 5 3 this is my …

Member Avatar for urtrivedi
0
138
Member Avatar for rajilakshmi

I want to split the image equaly by vertically. This images should be in slideshow. Then give the link to that two parts. Left side link is for moving to previous slideshow and right side link is for moving to next slide. Anyone can help? Please!

Member Avatar for rajilakshmi
0
81
Member Avatar for mbarandao

Hello all: I have the following mysql query statement: SELECT COUNT(*) as ttl_rows FROM (SELECT DISTINCT(date(timeentry)) AS day, COUNT(*) AS total FROM history where MONTH(CAST(timeentry as date)) = MONTH(NOW()) AND YEAR(CAST(timeentry as date)) = YEAR(NOW()) GROUP BY DATE_FORMAT(timeentry, '%d') ASC) as ttl_row the statement performs a search for all records …

Member Avatar for mbarandao
0
460
Member Avatar for utchia

hi i have been working on my project to create a store and i have to add items and sell items, and once i add items i store them into a textfile separated by commas, and i made the add item button work perfectly but i am having trouble with …

Member Avatar for Majestics
0
580
Member Avatar for Atlanta15Braves

I need to sort these strings in order and I have changed the code of my program which use to sort integers and now I need it to sort strings and I cannot get it to work, any help..... import java.util.Scanner; public class Strings { // -------------------------------------------- // Reads in …

Member Avatar for subramanya.vl
0
221
Member Avatar for slimergan

Parser implementation Hi I am trying to implement a parser for a simple language with grammar like this. program ::= "program" declarations "begin" statements "end" declaration ::= "var" ident "as" type type ::= "string" | "int" I have the first two done, how would I write the type grammar? program( …

Member Avatar for rubberman
0
240

The End.