35,586 Topics

Member Avatar for
Member Avatar for GTech4life

Can some one help me with my programming project, it is supposed to loop. If the number is even output comes out even and vise-versa. Can someone please tell me what is wrong with my code. Errors "3 errors found: File: C:\Users\Kaamil\evenodd test.java [line: 1] Error: The public type NumberEvaluator …

Member Avatar for TrustyTony
0
277
Member Avatar for nan2

have data in this format =[{"Name":"A","children":[{"Name":"C","children":[{"Name":"CC",children":[{"Name":"TC","count":1,"children": want it in readable/xml format to make it easily understand like A:C:CC:TC and then A:B:BB etc to clearly shw the structure basically. how to do??? thanx

0
79
Member Avatar for kelvin.njuguna

/** * @(#)SavingsAccountTest.java * * SavingsAccountTest application * * @author Kelvin Njuguna * @version 1.00 2012/4/24 */ public class SavingsAccountTest { public static void main(String[] args) { double interest1,interest2; double newBalance1,newBalance2; SavingsAccount.modifyInterestRate(0.04); SavingsAccount saver1 = new savingsAccount(2000.00); SavingsAccount saver2 = new savingsAccount(3000.00); for(int=0;i < 12;i++); { system.out.printf("Month %d:\n",i+1); interest1 = …

Member Avatar for Johannady2
0
92
Member Avatar for Fotis_13

Hi! I have one small question. Is that possible? public class test1 { public static void main (String[] args){ test2 client = new test2(); test2[] call = new test2[1000]; int x =2; call[1].add1(x); } } public class test2 { void add1(int x) { x = x+1; } } Sorry for …

Member Avatar for Fotis_13
0
406
Member Avatar for effBlam

Im stuck on how i shlud set up my Maze class in order to get started with solving it recursively. The maze has values stored into a two dimensional array " char[][] maze" and from there im stuck. heres my codes so far: public class Maze { char start; int …

Member Avatar for NormR1
0
192
Member Avatar for hszforu

i have been coding a client server program to calculate factorial of a no . The client will pass the no to the server whose factorial is to be calculated. Now the problem that i am encountering is that no matter what value i am passing to client(variable msg in …

Member Avatar for hszforu
0
4K
Member Avatar for toldav

Hi, If some one can guide me to the right direction I'm trying to use arrays to display urls in one line and under the url the text name of the href text. The second function it doesnt work some help will appreaciated. thank you. <!DOCTYPE HTML> <head> <meta http-equiv="content-type" …

Member Avatar for Philippe.Lahaie
0
225
Member Avatar for spowel4

I am having trouble getting this to work. I have a form which when the Go button is clicked, calls a function; code for the form & the script listed below: <script> function RunSelectedReport(reportChoice) { alert("reportChoice: " + reportChoice); if ( reportChoice === "AllCalls" ) { alert("All Calls"); } else …

Member Avatar for spowel4
0
337
Member Avatar for hadi1370

hello friends! I want to participate in soccer simulation competition and i don't have any info about its programming. i want to use java. is there anyone help me? Thank you.

Member Avatar for Miladsob
0
105
Member Avatar for charmcity04

I need to create a program that will read from a file and output the information into a JFrame. I know how to create a program to read a file, but I just need some help reading the file to GUI. Any help would be appreciated! package ism3230_ch6assignment; import java.io.*; …

Member Avatar for NormR1
0
285
Member Avatar for azareth

i just need a clear explanation for this: var lastCol = getColumnCount()-1; var lastRow = getRowCount()-1; var table = document.getElementById(TableID); var rowSum; /*Summation of all the values in of rows*/ var columnValue; if(ths == 'on'){ for(var b=1;b<lastRow+1;b++){ rowSum = 0; for(var i=0;i<lastCol-1;i++){ columnValue = table.rows[i].cells[b].childNodes[0].value; if(columnValue != '' && !isNaN(columnValue)){ …

Member Avatar for azareth
0
200
Member Avatar for kit007
Member Avatar for kit007
0
91
Member Avatar for jonny93

Hello, I'm new to this site, and i really need help with something. I have been working on a checkerboard project for my second programming class, and now I'm stuck. I now how to set the icons, but now I am absolutely confounded as to how I move the icon …

Member Avatar for NormR1
0
2K
Member Avatar for shifat96

I need help for another one of my assignments for CS Class. On the rubric, one of the part said: > all characters are shifted right by two positions and the last two characters becomes the first two characters The condition is that the string has to be entered by …

Member Avatar for shifat96
0
2K
Member Avatar for effBlam

Pretty much i have to read a txt file which contains a sample maze in it as so: 4 5 ~~~00 00S~0 E~0~~ 0~~~0 the first number is the number of rows and the second is number of columns. Im having trouble figuring out how to store just the "maze" …

Member Avatar for NormR1
0
504
Member Avatar for Diogo Martinho

Hey guys, I'm about to start a project in which I'll have to implement something simillar to an ordinary excel sheet, and one of the aspects that will be focused is related to the creation/implementation of Macros which allow me to record a number of actions and then perform those …

Member Avatar for JamesCherrill
0
161
Member Avatar for javaprog200

Hello, The following program displays two images (ImageIcon type) inside the JTextArea. Is there a way I can make both of these images transparent sothat what I type on them is visible? Thanks in advance! import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import java.io.IOException; public …

Member Avatar for JamesCherrill
0
202
Member Avatar for fo2sh

Any body can help me with this error I am getting this error: C:\Documents and Settings\Fuad Damra\Desktop\TCPDayTimeServer.java:33: variable out might not have been initialized out.println("Server Sent Average: "+Avg); ^ 1 error When I am trying to execute this program: [CODE]import java.io.*; import java.net.*; import java.util.Date; public class TCPDayTimeServer { public …

Member Avatar for NormR1
0
905
Member Avatar for zuzzles

So i came across this issue that I can run my applet fine and it creates my file (exe) until i attempt to do so in a browser (firefox, IE, etc). Its signed and asks for permission and gives no erros but it doesnt write to the file I want …

Member Avatar for JamesCherrill
0
310
Member Avatar for sweets

Hello folks,I have implemented steganography for Least Significant Bit(LSB) 2 bit which works for any kind of carrier files i.e,basically i can hide image/text/video in any of these files. 1)Now i need to do some improvement for the project i.e, implementing steganography using any other method which is more efficient …

Member Avatar for sweets
0
123
Member Avatar for sweets

import java.io.*; import java.nio.ByteBuffer; import java.util.zip.*; import javax.crypto.*; import javax.crypto.spec.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class Steganograph { public static final byte[] VERSION_BYTE= {'2','0','0'}; public static final int OFFSET_JPG= 3; public static final int OFFSET_PNG= 42; public static final int OFFSET_GIF_BMP_TIF= 32; public static final short …

0
124
Member Avatar for blackmagic01021

Hello, I have a observer pattern based JTable. With time it is poulated with new data packets. I use addRow functionalities to add my rows. But I want to put always the last coming datapackets at the top. How to do it??

0
127
Member Avatar for design92

Hi all, I am trying to figure out javascript for mobile / home validation. Just to let you know, it must be equal to 11 digits (already done it) and accept only NUMERICAL characters, so letters are not accepted once validated or when you input data. My issue: I don't …

Member Avatar for stbuchok
0
180
Member Avatar for chinee

i am doing a project with a group i have to deal with orders by kind then linked to the driver who will be taking the first customer. the driver can be free or back in 10 min. i have started with the order list with the customer, i have …

Member Avatar for NormR1
0
766
Member Avatar for laura23

I have two files Persons.txt and Hobby.txt.In the third file i want to put all the persons names and add each name some hobbies.This is how my files look like Persons.txt ID;NUME;PRENUME;DATA_NASTERII;PROFESIA 1;Stan;Ilie;22-01-1977;profesor; 2;Becali;GG;01-07-1965;patron; 3;Tanase;Cristian;07-12-1988;fotbalist; 4;Pop;Ion;21-03-1984;pictor; 5;Popescu;Rodica;17-04-1986;sculptor; Hobby.txt ID;NUME;DESCRIERE;NUMAR_MINIM_PERSOANE;ELEMENT_NECESAR 1;baschet;sport in care se arunca mingea la cos;6;minge 2;fotbal;sport in care …

Member Avatar for NormR1
0
199
Member Avatar for vedro-compota

Hi) Guys , please tell me - which java graphic (which make you able to work with winforms) library should be studied at first? I started with SWT , but that i heared that it isn't "standart"...... thanks in advance for help.

Member Avatar for vedro-compota
0
202
Member Avatar for riahc3

Hey Im trying to add links in the images for EasySlide but I cant see to see where to put it..... Here is the .js code: /** * @author Bruno Bornsztein <bruno@missingmethod.com> * @copyright 2007 Curbly LLC * @package Glider * @license MIT * @url http://www.missingmethod.com/projects/glider/ * @version 0.0.3 * …

0
82
Member Avatar for Andy90

Hi, I want to know what is main difference between Single Threaded and MultiThreaded Client-Server? I want to create a client server chat application. Server Form consist: 1 Textarea(text area) (to display text) 1 sendarea(text area) (to type the text to send) 1 Send button (to send the text which …

Member Avatar for JamesCherrill
0
171
Member Avatar for fonzi

Hello I am currently working on this code and the code can be runned well from 100-10,000 random elements after that the heap sort says stack over flow, im thinking the recursive calls are the cause of this, so please healp public static void MAX_HEAPIFY(int [] A, int i, int …

Member Avatar for JamesCherrill
0
308
Member Avatar for VeyRonX

Hi, This is the line: Class ourClass = new Class.forName("com.app.something"); And this is the the error: cannot find symbol class forName My IDE is Intellij Idea. This is a particular case, but i want to know what causes this type of error, what should i look for.

Member Avatar for JamesCherrill
0
619

The End.