35,586 Topics

Member Avatar for
Member Avatar for amulet_john

Please HELP Me!!! I want to directly pass the value of a javascript variable into php variable... I used this code below but it doesn't work.. Can anyone teach me how to do it?? PLEASE.. Thank you so much in advance.. Here's my code: [code] <script type="text/javascript"> var a = …

Member Avatar for ajbest
0
4K
Member Avatar for Procx

Hello, I'm currently working on a small database project with various search algorithms. Right now I seem to be a little stumped. Basically what I need to is to read a huge file of strings, such as these 2 lines: Abram,Smith,70,M,Nursing Unit,324b Ace,Lewis,7,M,Intensive Care Unit,324c I then need to delimit …

Member Avatar for Procx
0
80
Member Avatar for rayden150

Good evening im seeking help with this program, it is in a loop that ends if a negative number is entered, I am trying to get the largest number entered in the do while loop, ive tried creating a temporal variable (temp), but I dont know where to go from …

Member Avatar for Taywin
0
207
Member Avatar for Hikari123

Hi, I am a beginner so bear with me. I have an assignment in which I have to create an array with numbers and then have a loop with condition to check in which order the user has inputed the numbers. Asc=1, desc=-1, other=0. This loop isn't working, i know …

Member Avatar for Hikari123
0
123
Member Avatar for applejax77

write a java program that prompts the user to input and integer and then ouputs both the individual digits of the number and the sum of the digits. This is what I have but it is not working when I input a negative number. Why? Need help! import java.util.*; public …

Member Avatar for applejax77
0
146
Member Avatar for Dwillich87

Hey I'm Dean I'm taking my BSc from distant learning so sometimes it takes forever to get the teachers or other students to help me on stuff I'm stuck on anyways. I'm given a task to show a quiz with a little clock running and to end the quiz and …

Member Avatar for Dwillich87
0
400
Member Avatar for akil007

I have the User Control in which ajax datepicker. Many instances of this user control are used in Same page. I have handle my logic like change of one value of one datepicker can change other datepicker through JavaScript. But I have faced that I does not get any uniqueId …

0
77
Member Avatar for Laxman2809

Alright so I have to Save and Load an array, and I am unfortunately running into issues at saving, where it keeps giving me the error[QUOTE]Exception in thread "main" java.lang.NullPointerException at java.io.FileOutputStream.<init>(FileOutputStream.java:186) at java.io.FileOutputStream.<init>(FileOutputStream.java:84) at SocialEventList.saveAppointmentData(SocialEventList.java:41) at Test.main(Test.java:120)[/QUOTE] [CODE]import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; public class SocialEventList { private SocialEvent[] …

Member Avatar for hiddepolen
0
211
Member Avatar for vijaykavin10

What is the usage of JTabbedPane and JPanel and which case we are using the components... Thanks

Member Avatar for mKorbel
0
65
Member Avatar for cgen

I need some idea how to correct this program. Though I think I understand the concept, my implementation is wrong. My program only prints the orignal string and does nothing with it. [CODE] public class ArrayStack<E> implements Stack<E> { protected int capacity; protected static final int CAPACITY = 1000; protected …

Member Avatar for JamesCherrill
0
1K
Member Avatar for anand01

Hi all, I did some basic method overloading program, when I run the bellow program i got output as int long but expected is short long.. can Any one explain me My code is : [CODE]public class MyClass { public static void disp(Long n) { System.out.println("Long "); } public static …

Member Avatar for anand01
0
81
Member Avatar for DragoDraco

I am trying to get the program to print how many of each letter of the alphabet is in the bible but it is throwing and error. I am just using a small part of the bible until I get it to run properly. Please help. import java.io.File; import java.io.FileNotFoundException; …

Member Avatar for DragoDraco
0
158
Member Avatar for mattnguyen45

The last do..while loop only prints the 2^n of the number entered and n is user input. It does not print all 2^n from 1 to what ever value user inputted. [CODE]/** * * * @author * @version */ //import Scanner utility import java.util.Scanner; public class Loops { public static …

Member Avatar for JamesCherrill
1
167
Member Avatar for Jfunch

The problem I am trying to solve is Write a program using fork() to compute average of N numbers. The parent process forks a child process that takes input from the user, adds all the numbers and returns the sum and the count of numbers to the parent process that …

Member Avatar for JamesCherrill
0
2K
Member Avatar for jasperuser

Hi all, I am currently working on jasper reporting. Designing reports using iReport Designer. Everything is working fine, but what I want to know is what is the way to use JavaScript in Reports (designing in iReport). For example, if i want to add the below code (clicking the button …

Member Avatar for jasperuser
0
726
Member Avatar for yup790

I am trying to make a Fibonacci sequence program to display up to the nth term(only positive numbers). For some reason it doesn't seem to work. [CODE]import java.util.Scanner; /** * * @author Toby */ public class Fabonnacci { /** * @param args the command line arguments */ public static void …

Member Avatar for JamesCherrill
0
242
Member Avatar for Aviras

Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. …

Member Avatar for JamesCherrill
0
219
Member Avatar for gedas

hey Guys, im creating a clas that is to be used in a HashMap to map phone numbers to name. for example : map.put( new PhoneNumber(207, 8269600, 260), “Paul”); [CODE] public final class PhoneNumber { private final int areaCode; private final int number; private final int extension; public PhoneNumber(int areaCode, …

Member Avatar for gedas
0
116
Member Avatar for buskerott

I know this is easy but I think some people out there are interested in my idea about storing user input in an array...... i read it some where and thought about bringing it much closer to you. [code]import java.util.Scanner; /** * * @author BUSKER-OTT */ public class USERINPUT { …

Member Avatar for JamesCherrill
-1
208
Member Avatar for lwisnas

[code] import java.util.*; import java.text.*; public class FactorialApp { public static void main(String[] args) { // create a Scanner object named sc and intializ variables Scanner sc = new Scanner(System.in); // perform Factorial application when user enters "y" or "Y" String choice = "y"; while (choice.equalsIgnoreCase("y")) { //get input from …

Member Avatar for hiddepolen
0
105
Member Avatar for rayden150

Hello, im sort of an intermediate programmer that has never installed a library on java before could anyone please tell me how to install this library on java so I could use the charts functionality, Please there are all sorts of folders in there I really dont know what to …

Member Avatar for ~s.o.s~
0
243
Member Avatar for solarmotion

The program already can compile and run. But, when we enter the film's code, an error will occurred. We had no idea how to solve it :\ [CODE] public class Entity { private String itemCode; private String title; private String description; private int language; private int time; private String productCompany; …

Member Avatar for Prateek nandan
0
418
Member Avatar for loserspearl

I have my program all working but whenever a user clicks cancel or exit I want the program to close, not throw my catch. Whenever a user throws a catch they have to input their answer twice before it will go back to normal operations. [CODE] import java.util.*; import javax.swing.*; …

Member Avatar for adarshcu
0
213
Member Avatar for vaironl

Hello forum, vaironl here. I would like to notify you all that I'm in an IB- Computer Science class (I'm learning a lot as I go, since I promise to skip the normal CS course). I would like to know if I could design this frame for my final project, …

Member Avatar for hfx642
0
106
Member Avatar for heybunny

am writing a program that plays rock paper scissor. The user will enter choice manually (rock is1, paper is 2, and scissors is 3) and the computer will chose one at random without letting the user know. The game will run as many times as the player wants. I can …

Member Avatar for ilovejava
0
2K
Member Avatar for Laxman2809

just like my title says my loop won't work [CODE]import java.util.Scanner; public class TestSocialEvent { static String title, attire, dayweek,input,time; static int day,month,year; public static void main(String[] args) { Scanner k = new Scanner(System.in); System.out.println("Social Planner"); SocialEventController sec = new SocialEventController(); while(true){ SocialEvent ev = new SocialEvent(attire, dayweek, title, day, …

0
61
Member Avatar for mamari

Hello, i need to list all menu items on page load, now it's on mouseover anyone can help? [ICODE] <a href="home.php?cat={$catid}" class="arrow" onmouseover="javascript: return switchSubcatLayer(this);"></a>[/ICODE]

0
139
Member Avatar for mtemp

Hi, I have several hundred html links in a file "main.html" pointing to external websites. ie: "external.html" When a user clicks an external link from within "main.html", I want to bring up "external.html" in all its glory, but with a banner / header across the top (I am guessing iframe …

Member Avatar for Agarsia
0
138
Member Avatar for programing

hi i write code that is mesure the area of traingle with two constructor ... with argument and default constructor and set ,, get , high and length ,, and tostring , equals methods but i think is there a logical error class file [CODE] public class Traingle { private …

Member Avatar for hiddepolen
0
133
Member Avatar for cse.avinash

hello daniweb.. :) I am learning JAVA and currently new to it, I am studying "The Complete Reference-JAVA" by Herbert Schildt. In that book its written that using short or byte will save space, but there is no guarentee that Java won't promote those types into int internal anyway. Remember …

Member Avatar for JamesCherrill
0
111

The End.