32,204 Topics

Member Avatar for
Member Avatar for jasmin_java

hi i need to help me this is my calculator code but it's not work with me and i don't know what is the problem in this code can you help me to solve it and tell me what is the problem . thank you . import java.awt.*; import java.awt.event.*; …

Member Avatar for jerbo
0
271
Member Avatar for rupeshpradhan

Hi! Having programmed in non-object oriented programming languages for a pretty long time, thinking in terms of classes and objects hurts my brain. I have written a program in BASIC (to print out the result sheet of a class after having obtained the data such as name of the student …

Member Avatar for Egsal
0
178
Member Avatar for usha

I am writing a program in java for the Shortest Job First Scheduling , have generate the Process ID and Process Time separately but i have to put both in an array and would like someone to help me please.

Member Avatar for usha
0
167
Member Avatar for skygod

My task is to code an applet that should take 2 fractions and either add, subtract, multiply, or divide them (depending on which JButton the user uses). Then, the fraction is to be converted to lowest terms. Also the fractions will be entered in in terms of 2/5 for "two-fifths". …

Member Avatar for skygod
0
185
Member Avatar for shantuli

hi, i am new in java, pls anyone help me to find out the error of my code. 1)Q- Write a java program which implements a simple sequential search algorithm for finding the position of a number in an array. My code is : [code] public class linearsearch { public …

Member Avatar for Narue
0
146
Member Avatar for PeterX

Please help me! My program does not work 1-I have problem wihte constructors parameters 2-I have problem whit toString methode. User writes(from keyboard): workers name, hourPayment, and time(how many hours he has worked, first week, second week....). The out put is like this: his(name) salary is.....$ for first week his(name) …

Member Avatar for jerbo
0
67
Member Avatar for rddreams

hi I will be thankful to anybody tells me how can I convert java/sql code to asp.net/sql2000 code. thanks.

0
92
Member Avatar for aimmnrsy

hi, i have to create a solitaire game, i'm having trouble moving cards, if i move one the program will repaint it but will replace the moved card with another one if you try to move another card from a different pile. the code i currently have for this project …

0
73
Member Avatar for bsunkel

HI I'm very new to java. I have multiple JTextfields(about 11) on my JFrame. They are arranged in 1 column down my Frame. I would like to know how to move from the first JTextfield to the JTextfield of my choice(eg.It must move from 1st JTextfiled to the 5th JTextfield …

Member Avatar for bsunkel
0
103
Member Avatar for Dave G.

I am trying to set up a jsp page which takes input from any form and filters out user input which may pose a security risk. I am using the following function to try to do this: [CODE] <%! private String checkInput(String test){ String bad_input = ""; boolean someBadInput = …

Member Avatar for Dave G.
0
101
Member Avatar for ra2833

i am trying to have macromedia flash button send a double or a symbol like (+, =, &) to a java program. the java program will save the input on an arraylist. while the flash button sends doubles it simply puts them on the arraylist, but if a symbol comes …

Member Avatar for ra2833
0
124
Member Avatar for ra2833

Hi, i am new to java..... i was wondering if someone can hlep me with the code to substitute the use of showInputdialog. currently i am using the following code to recieve Strings, but i do not want to use the java dialog boxes. is it possible to do something …

Member Avatar for ra2833
0
98
Member Avatar for ra2833

i am trying to have macromedia flash button send a double or a symbol like (+, =, &) to a java program. the java program will save the input on an arraylist. while the flash button sends doubles it simply puts them on the arraylist, but if a symbol comes …

0
68
Member Avatar for ALT-F4

Hey, I've been programming for sometime now and one thing I've never had to do is any sort of "debugging". I was just wondering if someone could help explain to me the process and the purpose of it. Thanks! :lol:

Member Avatar for ALT-F4
0
124
Member Avatar for femmegirl

I need to write a JAVA program that converts an uppercase letter to a lowercase letter ... the method declaration should be public static char upperCasetoLowerCase(char ch) ... I think I am missing something in my thought process. Can anyone help? Here is what I have tried... [code] public static …

Member Avatar for femmegirl
0
151
Member Avatar for cltc72

i wrote a program to help input User ID's for a system admin can any one check the code to seewhat wrong with it thank you

Member Avatar for cltc72
0
142
Member Avatar for chocobo74

This is my skeleton of my very basic computing project, which is to create a spelling test displaying twenty questions: [code] // // spell_test.java // spell_test // // Created by chocobo74 on 21/09/2004. // Copyright (c) 2004 __MyCompanyName__. All rights reserved. // A simple Java applet // import java.awt.*; import …

Member Avatar for nanosani
0
89
Member Avatar for SureStoreX

I am doing a program in which there are 8 planes seats the user gets to choose whgich seat they want. I created the GUI buttons and what not (fairly easy), but I wanted to make an array....I'm rambling here, because I can't do this program the way I want. …

Member Avatar for SureStoreX
0
108
Member Avatar for PeterX

Hi! I have a little problem The program is OK, but I can not print out: QUESTION is how can I print out (class Test). I mean How can I write toString()methode.how can I print out "myTable" and the out put must be like this: Audi blue 180 Volvo red …

Member Avatar for PeterX
0
100
Member Avatar for NicolaD

:sad: Hi all, been trying to code the following program for ages, if anyone can help please do so. Code a java program that will determine the cyclomatic complexity(CC) of any given java source code module held in a text file. The program is to display the CC. Note- CC=Number …

Member Avatar for Narue
0
145
Member Avatar for rohit_macharlra

hello everybody i am having a problem is it possible to add list to Window class in awt

0
123
Member Avatar for rohit_macharlra

any body help me i have a problem is it possible to change the font style , size of the [SIZE=4][COLOR=Indigo]tooltiptext[/COLOR][/SIZE] using AWT or Swings in Java

0
64
Member Avatar for prackit

I have to do a basic program of a calulator(text field at top for display and then all numbers) it does not have to be funtional. I know you can only have one layout manager per container...but I can't get it to work? This is what I have so far..any …

Member Avatar for ALT-F4
0
152
Member Avatar for jdigga07

newbie taking java 1 got a question my book seems to be hiding the answer to. my project is to make a smiley face that resizes when the window changes size. my prof. gave told us that size is all relative when creating the face the circle head something along …

0
67
Member Avatar for chungaroo

i'm write a program that asks for a password then if correct will go into a while loop, but for some reason whenever i execute the code and enter the right pass, nothing happens. heres what i've been working on: [CODE]/* This program will simulate a program that could be …

Member Avatar for jerbo
0
113
Member Avatar for Angie Tullis

I need help to declare a method to determine whether an integer is a prime number using the method of public static boolear is Prime(int num) Need to find the first 1000 prime numbers and display every ten prime numbers in a row. If you can help email me at …

Member Avatar for Narue
0
82
Member Avatar for Jason Marceau

Hi, Can anyone tell me how to tweak my code so it will only generate a random number between 0 and the number input by user? Here's the code: [code] import java.util.Random; import java.io.*; public class RandomNumPicker { public static void main(String[] args)throws IOException { BufferedReader stdin = new BufferedReader …

Member Avatar for Narue
0
127
Member Avatar for chefsride

My problem is that I need to make a program that has a JTextArea, a button and a JTextPane in it. The idea is to put in the JTextArea either by typing or by pasting java source code. Then press the button and out would come a colored version of …

0
56
Member Avatar for shdwdrgn517

I'm trying to compare a string to an ArrayList Object. But no matter how I try to compare it, such as just ==, or .equals(), or .compareTo(), or String.valueOf(ArrayList.get()) with all of the above options, it won't compare correctly, even if they are equal when outputted they aren't equal when …

Member Avatar for shdwdrgn517
1
140
Member Avatar for psychohigh

Hi my program needs to print a text file onto the terminal one line at a time. For example if I type, "java HT head -n 7 blablah.txt" it'll print the first 7 lines and if i type "java HT head -n 3 asdf.txt" itll print the first 3 lines …

0
74

The End.