36,051 Topics

Member Avatar for
Member Avatar for nore

Hello all! I want to ask you , how to pass variable, there's the example: I have variable String X in pageone.jsp then i open a new tab page to pagetwo.jsp (using JavaScript window.open) , Is it possible to use the variable X (from pageone.jsp) in pagetwo.jsp ? Please Explain, …

Member Avatar for javaAddict
0
244
Member Avatar for Zaad

Hi All; Im just making a simple Desktop app. Ive got a need so that the user could be able to add data to the table dynamically. Ive done implementing the table and also code for adding rows. Issue is after i add the row it is not displayng in …

Member Avatar for Zaad
0
1K
Member Avatar for dennysimon

hello all I use notepad++ to create my code I use dos command to javac the code some times when there is error in my code the the dos console shows many lines of error message my question is : if the error lines's message is 100 lines or more …

Member Avatar for dennysimon
0
168
Member Avatar for Sanna.1

hi every one I have a exercise when i going to use boolean. Im need to do 3 intergervaribals var1 var2 var3 and then i get same claim im going to get in to it like one of it is: The number var1 is evenly divisible by 7. i figuer …

Member Avatar for JamesCherrill
0
294
Member Avatar for autorunman22

I was using Struts 2 as web framework and eclipse EE as my IDE. I can run my jsp/servlet application just like the way i wanted it to be but everytime i start the tomcat ver 6 server, an INFO log always appear except that its asking for log4j. here …

0
79
Member Avatar for rupes0610

I have a Sudoku puzzle and I need to make sure that each row and column have each number 1 through 9. What is the easiest way of doing this? The code snippet that I have so far is below. public static boolean rowsAreValid(int[][] array){ for(int i = 0; i …

Member Avatar for hfx642
0
312
Member Avatar for thepanther

hi i am trying to make a hangman game and what ineed to do is when there is wrong answer to put pic of part of the hangman but dont no how to do it, here is my code thanks [CODE]int charPos = +1; String letter = ALetter.getText(); charPos = …

Member Avatar for Ezzaral
0
458
Member Avatar for uurcnyldrm

Hi everyone, Is there a way to read the text in a pdf file like reading notepad? And after that, I should be able to use it, for example, in a text area or show it to my users without using another program such as adobe reader. That's really important …

Member Avatar for uurcnyldrm
0
249
Member Avatar for uurcnyldrm

Hi people, How can I put a JRadioButton wherever I want in a JPanel? I tried setLocation() but it did not change anything. It is still on the north-center part of the panel. I think I'm missing something, but I can't figure it out. Thank you in advance.

Member Avatar for NormR1
0
189
Member Avatar for nishasthomas.pt

I am doing my project in datamining area.Please help me with the code for clustering a set of attributes in database.

Member Avatar for BitBlt
0
38
Member Avatar for macdunk11

So I'm trying to print the first six generations of the Game Of Life in a 7x7 array. I only have the code for one generation, but I can fix that later. I made the array types integers. What I need help with is getting the correct code for all …

Member Avatar for gusano79
0
176
Member Avatar for vaironl

Hello forum, Vaironl here. I already asked this question with no luck. So now I will to repost it without the code. I have a JPanel which contains labelsand JTextField + other components. When I minize the window and then restore it The components stay in place but the are …

Member Avatar for vaironl
0
110
Member Avatar for missc
Member Avatar for stultuske
0
201
Member Avatar for Kalle21

[CODE]import java.util.Scanner; class wloop { public static void main(String[] args) { int counter=2; int sum=0; while( counter<=200 ) { sum = sum+counter ; counter = counter+2; } System.out.println("The sum of integers from 2 to 200 is: " +sum); } }[/CODE] [CODE]import java.util.Scanner; class wloop { public static void main(String[] args) …

Member Avatar for stultuske
0
116
Member Avatar for iamcreasy

How to start a servlet automatically when index.jsp starts. To put it simple, here is the index.jsp file. [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <title>JSP Test</title> </head> <body> I want to put something here, so a servlet automatically starts without doing anything. </body> </html> [/CODE]

Member Avatar for nore
0
207
Member Avatar for Pankti Desai

I am making a program in jsp servlet. There are three tables in database: category , subcategory and items. Their structure is like this :: category 'A' --> subcategory '1' ===> item 'i' ===> item 'ii' ===> item 'iii' --> subcategory '2' ===> item 'iv' category 'B' --> subcategory '3' …

0
65
Member Avatar for Ashenvale

Can anyone tell me y is it that taxDeduc won't return the value? [CODE] import java.util.Scanner; public class PayollComputation { public static void main(String[] args) throws Exception{ Scanner get = new Scanner(System.in); //variable declaration int ctr, loc = -1, payrollPeriod, daysAbsent, minsLate, oTHours; int tempENo = 0; char ans, ans2; …

Member Avatar for Ashenvale
0
159
Member Avatar for justin08

Hello everyone or anyone! Could some please assist me on how to read a text file like this: ProgrammingAssignment1Data.txt 123 South Market Street Downtown 101 Package 0 1599 Burbank Road Cinema 10 Movie posters in tubes 1 1 order slip format is: Pick up address Drop off address item description …

Member Avatar for stultuske
0
194
Member Avatar for Gsterminator

Hey I need help making a isEqual method in my singly linked class. The goal is to prove that both list have the same elements without necessarily having the same order. Now my method does call a different method in the node class, and it's job is to to search …

Member Avatar for Zhoot
0
191
Member Avatar for ThaiAmL

Hello! I'm writing a very simple program to get used to using GUIs, and I'm having a bit of trouble. We're supposed to be writing a program that just creates a window and after the user puts in a number, it calculates the square root and the square of the …

Member Avatar for ThaiAmL
0
218
Member Avatar for furqanishaq

hi i cant get this to print out my result i get red lines underneath [CODE] operators1.setVal1(12); // sets val1 to 12 operators2.setVal2(45); // sets val2 to 45 operators2.setVal3(94); // sets val3 to 94 operators2.Calculations1(); // Calculations method being called for equation 1 operators2.Calculations2(); // calculations method being called for …

Member Avatar for zeroliken
0
127
Member Avatar for nicolemarie

public static void main(String[] args) { World earth = new World(); Turtle t1 = new Turtle(earth); t1.penUp(); t1.moveTo(50,50); t1.penDown(); t1.setPenWidth(5); t1.drawLetterN(5.0); t1.penUp(); t1.moveTo(500,400); t1.penDown(); t1.setPenWidth(3); t1.drawLetterN(2.0); t1.penUp(); t1.moveTo(330,50); t1.penDown(); t1.setPenWidth(15); t1.drawLetterN(15.0); t1.penUp(); t1.moveTo(250,240); t1.penDown(); t1.setPenWidth(8); t1.drawLetterN(7.0); t1.penUp(); t1.moveTo(10,350); t1.penDown(); t1.setPenWidth(10); t1.drawLetterN(10.0); } public void drawLetterN (double scale) { System.out.println("drawLetterN was …

Member Avatar for Zaad
0
992
Member Avatar for Ashenvale

:C my fresh install Netbeans 7.0 won't open and it says "JVM creation failed" can anyone pls tell me what's wrong? >.<

Member Avatar for Ashenvale
0
90
Member Avatar for Ntropy

Basically, i've been told to initialise a grid into the "canvas" section of this program i've made, I need to make a fine grid that stretches across the whole canvas horizontally and vertically, 10 x 10 pixels apart example of the code i'm editing to do this below... [CODE] class …

Member Avatar for Ntropy
0
317
Member Avatar for javaprog200

Hello, The following program displays the text area for the entire JFrame even though I have set the dimensions of the text area to be 10 x 15. Any help will be greatly appreciated. Thank you! [CODE]import javax.swing.*; import java.awt.*; public class Scrollers extends JFrame { JTextArea area; JButton button; …

Member Avatar for javaprog200
0
183
Member Avatar for elkowalski

hi guys, i am doing a game where i have to detect whether my sprite collides with the wall horizontally or vertically, so in that case reverse the velocity of x or the velocity in y or both in some cases. what i have done is that with an array …

Member Avatar for elkowalski
0
194
Member Avatar for M.Waqas Aslam

hello ! i have experience in VB.net,C# and MSSQL2000,2005,2008r2 .but today my boss assign me a task to connect mssql server 2008 by using JS or JSON ,both are unknown for me ,:( i dont have any knowledge about JSON and JS , can any one help me how to …

Member Avatar for darkagn
0
237
Member Avatar for drico7041

Do you have to be like a master programmer in a certain language to land a job in this field?

Member Avatar for WaltP
-1
267
Member Avatar for gowans07

Hi, I currently have a legacy application wrote in java and am trying to develop a new updated version of the application. The application relies on inputs from encrypted text files, the only thing is i dont know the type of encryption used in the old application. Is there any …

Member Avatar for gowans07
0
366
Member Avatar for kexkoj

Hi, So im trying to create a deposit method, but to no success. Can someone pls help me ?? This is my code for far: [CODE]static void depositCurrent (ArrayList<Current> CurrentListIn) { System.out.println ("Enter account number you want to deposit money into"); String accountNumber = EasyScanner.nextString(); boolean flag = false; double …

Member Avatar for kexkoj
0
175
Member Avatar for llemes4011

Hi, I was wondering, is their any way to draw/add a JFrame inside a JApplet. I have this JFrame that needs to be in Applet form, and I don't know how to go about doing it. Completely re-writing it is out of the question (5 or so classes). I didn't …

Member Avatar for jcomeau_ictx
0
350
Member Avatar for krejar

My problem here is that I am trying to get the getBigJackpot() to correctly woork. If I were to win say 10 coins, it would store in an int, but if I were to win 5 coins, that 10 would stay and disregard the 5 coins won. If I were …

Member Avatar for krejar
0
121
Member Avatar for aznjesse

Our class assignment is to add, subtract, multiply, and divide two huge ints i'm currently working on my multiply function and my multiply isn't working and i cannot pin point the problem. When i input 3*3 it inputs 9 but when you input 4*4 it outputs 6 (the carryover function …

Member Avatar for NormR1
0
197
Member Avatar for 47pirates

Hello, i want to send images over socket .I had two methods one for converting the images to byteArray "convertImageToByteArray()" and another for converting byteArray to image "convertByteArrayToImage(byte[ ] b)" and i am trying to send bytes through socket and receving it , how can i do so please help.....

Member Avatar for DavidKroukamp
0
128
Member Avatar for shaneo123

i am trying to use a picture for the background of my blackberry app instead of the default white background how can i do this? any code snippets would be greatly appreciated Thanks

Member Avatar for shaneo123
0
126
Member Avatar for shaneo123

Hi i am a new developer i am just trying to create a simple app and put it on my phone. i have created a hello world one and successfully put that on my phone, i am now trying to create one where you click on a button and it …

0
119
Member Avatar for Hypnos_16

I have to make a program that outputs something similar to the appearance of a phone. With intractable buttons, (0 - 9) a T button that outputs "Calling" and an E button that outputs "End-Call" Now i have that much done [CODE]import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Dimension; import java.awt.Color; import …

Member Avatar for Hypnos_16
0
295
Member Avatar for Nana88

Develop a program to keep track on the library books inventory system for the library administrator. Your program should allow the admin to add and edit books’ details such is ISBN, title, author, publisher, date of publication, etc. The admin staff can create accounts for library user to perform functions …

Member Avatar for stultuske
-4
155
Member Avatar for scheppy

I know that .bat isnt java, but I dont know were else to place this thread So ive finished my program, has sounds, images and other junk all in a folder on my desktop. as soon as you open the folder you can see the file program.java and also folders …

Member Avatar for DavidKroukamp
0
306
Member Avatar for moonray

i want to know about performance measurement tool in java means tools which measure the time statistics ,memory statistics etc of a program which coded in java?

Member Avatar for moonray
0
193
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Login extends Thread { public void run() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); Scanner s=new Scanner(System.in); while(true) { System.out.println("Enter username:"); String h=br.readLine(); System.out.println("Enter password:"); String d=s.nextLine(); } } } class Display extends Thread { public void run() { while(true) { System.out.println("ur username is:"+" "+h); …

Member Avatar for DavidKroukamp
0
145
Member Avatar for ceyezumma

Hello all: Has anyone tried one jar and received an error that the main class will not Load? I used "ONE JAR" and created the executable and I altered the build file. response from simon: Main-Class: com\simontuffs\onejar.Boot One-Jar-Main-Class: musicSystems.src.view.Main [quote] "Main-Class" is the "standard" Java JAR main class launcher, used …

0
76
Member Avatar for wallet123

this is the code that i did: [CODE]import javax.swing.JOptionPane; public class MidtermExam { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int x; int y; int z; int count = Integer.parseInt(JOptionPane.showInputDialog(null,"Enter any Number:")); for(x=1;x<=count;x++){ for(y=x;y<=count;y++){ System.out.print(x+""); } System.out.println(); } } } [/CODE] …

Member Avatar for stultuske
0
189
Member Avatar for Kalle21

hello i trying to learn how to type in for exampel 5 and its going to type out 5 4 3 2 1 0 [CODE]import java.util.Scanner; class indexerad_variable { public static void main( String args[] ) { int i= 0; while (i<= 100){ System.out.println("your number: "); System.out.println((100-i)); i++; } } …

Member Avatar for stultuske
0
105
Member Avatar for jahanruhi3@gmai

Hello, I have a problem with the logout functionality on my web application . it is a simple application that uses DatabaseServerLoginModule to login and uses invalidate() in the application and [code=xml]flushOnSessionInvalidation="true"[/code] in jboss-web.xml. also each page in the jsp has [code=JSP]<%@ page session="false"%>[/code] on the very top and the …

Member Avatar for jahanruhi3@gmai
0
115
Member Avatar for wallet123

My assignment is to create a program that accepts a list of exam scores (ranges from 0-100) and output the total number of grades and then the number of each in letter grade.. but my problem in the beginning of doing my program is: [CODE]public class Grades { /** * …

Member Avatar for wallet123
0
351
Member Avatar for kartik1997

Please help!!! What would be the algorithm form of the following program:- [code]import java.util.*; public class quizcontest { Scanner sc=new Scanner(System.in); String name; int ans1,ans2,ans3,ans4,ans5; //declaring variable// void acceptname() {System.out.println("****************************"); System.out.println("|||||-----Please Enter Your Name-----|||||"); name=sc.next(); System.out.println("****************************"); System.out.println("+++++Best Of Luck ! "+name+" +++++"); } void sports() { System.out.println("Here Starts Our Quiz …

Member Avatar for stultuske
0
143
Member Avatar for furqanishaq

hiya i need to create these if statements please can someone show me how to create them i have attached an image alongside this thank you so far i have this public class Logic2 { int Val1, Val2, Val3, Result1, Result2; // creating 1,2,3 integers public void Calculations (int Val1,int …

Member Avatar for rushikesh jadha
0
145
Member Avatar for furqanishaq

How do we write something to square these calculations Result1 = Val3-Val1sqaured; Result2 = Val3-Val2; i need to square these calculation how would i do it so it meant to look like Result1= Val3-Val1sqaured; i cant get the squared bit thank you

Member Avatar for JamesCherrill
0
95
Member Avatar for aanders5

Okay, so I think it will be easier to show you then explain. I am making Minesweeper, I have 100 toggle buttons, I have a randomizer to place 10 bombs. [CODE] ArrayList<Integer> bomb = new ArrayList<Integer>(); Random rand = new Random(100); for (int i = 0; i < 10; i++) …

Member Avatar for JamesCherrill
0
152

The End.