36,051 Topics

Member Avatar for
Member Avatar for drjay1627

Hi, I have this requirement that I have been trying to solve for a couple of days now. I have this source DB. The objective is to extract data from this source DB and insert into a oracle table. The meta data for both tables are the same (1-1 mapping). …

Member Avatar for masijade
0
187
Member Avatar for t1suka

Hello, I've been trying to code a TrueSkill calculator using Java that fetches scores and updates them in a MySQL database. I finished coding it however it appears to have a problem while executing. This is an example of what I want the output to be like: [QUOTE]connecting to database …

Member Avatar for t1suka
0
363
Member Avatar for gahhon

film class [CODE] import java.util.Scanner; // Creating Class Members public class film { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public film() { itemCode = ""; …

Member Avatar for gahhon
0
351
Member Avatar for vjames

Hi, I'm making a snake game and I got a timer to check everything and repaint the component. How can I achieve a 60 fps without affecting the movement of the snake. I need help to come up with an equation for the speed of the snake. Need to change …

0
259
Member Avatar for marvolo1300

Hi there, I have to create a card game as an assignment, and i am having trouble with a part of the assignment. Basically, there is an array, 'playerHand', which holds a set of integers. What i want to do is to add the elements of the array and then …

Member Avatar for marvolo1300
0
166
Member Avatar for caswimmer2011

Hey, I am now programming in a MacBook Pro and for the KeyCodes in the Robot Class, there is no set key for Command. Can I set a KeyCode to do the actions of the Command key? Thanks

Member Avatar for caswimmer2011
0
210
Member Avatar for mike2828

Hi i am new to java gui, i have trouble using color constructor. please tell me what the problem . thank you . [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass1c extends Applet { Color c = new Color(5,25,205); public void Color(int r,int g,int b); public void init() { System.err.println("Hello from …

Member Avatar for Ezzaral
0
218
Member Avatar for cgen

I need help understanding this algorithm Design a variation of algorithm TreeSearch for performing the operation findAl(k) in an ordered dictionary implemented with a binary search tree T, and show that it runs in time O(h + s), where h is the height of T and s is the size …

Member Avatar for cgen
0
423
Member Avatar for glamourhits

Your task is to implement Stack and Queue classes for Objects. Both Stack and Queue should extend Collection, which is an abstract class that will be given to you. You will need to download and modify the NetBeans project that goes along with this assignment. Stack should have the following …

Member Avatar for Taywin
0
589
Member Avatar for needhelpinjav

Write a java project (applet) that has two classes. The driver class (has the init() method) should allow the user to enter into an Input Dialog Box, the mail type ("P" for Priority or "F" for First Class), a blank space, and the weight in ounces of the piece of …

Member Avatar for mKorbel
0
251
Member Avatar for Joey_Brown

First of all, hello Im Joey and Ive recently started messing around with the Java language. Ill do my best not to bother you alot with my newbie questions :) So I need to create a method that returns some variables I have encapsulated, as String but without the last …

Member Avatar for Joey_Brown
0
161
Member Avatar for theadjectivenou

I need help trying to figure out what I am doing wrong. my teachers wants two different sentences to read as "Wow, (insert word 1) and (Insert word 2) are funny" and on the second line he wants them reversed to read "Wow, (insert Word 2) and (Insert Word 1) …

Member Avatar for Taywin
0
114
Member Avatar for ravsau

I have written a solution to the following assignment but I wont get any output. I used System.out.println randomly to see where my program stops and I figured out it is righ after the while (inputFile.hasNext()) method. Any suggestion will be great. Thanks! my assignment: build a program that uses …

Member Avatar for stevanity
0
3K
Member Avatar for gahhon

[CODE] //Member Login public static boolean memberLogin(){ int memberPassword = 123; boolean password = false; int confirm = JOptionPane.showConfirmDialog(null, "Are You A Member? ", "Member Confirmation", JOptionPane.YES_NO_OPTION); do{ while(confirm == JOptionPane.YES_OPTION && password == false){ String tempCurrentPassword = JOptionPane.showInputDialog(null, "Please Enter Your Password", "Default Password = 123"); int currentPassword = …

Member Avatar for stevanity
0
209
Member Avatar for paulsoncall

Hi - I'm having a hard time figured out how to print the triangle shape below using loops. I did the two previous triangles with no issue but have no idea how to get the spaces in there. I'm really confused and would appreciate any help. [CODE] * ** *** …

Member Avatar for paulsoncall
0
263
Member Avatar for persianprez

So this is my assignment: Represent the concept of a Number. For this example a Number is a thing that can be added subtracted, multiplied and divided. Each of these operations is binary and produces a Number as a result. Encode the the Notion of of an Int (an integer …

Member Avatar for persianprez
0
146
Member Avatar for ronak127

hey guys I'm a newb to this C++ programming and I need help. I've made a non-recursive GCD C++ code, but i was having problems with the algorithm. Can someone help please? [ICODE]import java.util.Scanner; public class GCD { public static int GCD; public static int div; public static int remainder …

Member Avatar for mrnutty
0
180
Member Avatar for Shinku

[CODE]import java.io.*; import java.util.ArrayList; import java.util.Scanner; class Arralist{ public static <Cd> void main(String [] args) { ArrayList<Cd> liste = new ArrayList<Cd>(); try { Scanner input = new Scanner(new File("text.txt")); while (input.hasNext()) { liste.add(input.next()); } input.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } } }[/CODE] I got error like this : …

Member Avatar for Taywin
0
141
Member Avatar for StudentCS

im stuck in this terrible problem, I have a SOAP based webservice implemented in Java.The client besides other data is supposed to have "male" and "female" checkboxes so the user can either select one of them or both and the client is supposed to send it to the server to …

Member Avatar for hag++
0
562
Member Avatar for Hikari123

This program runs very smoothly, except that it doesn't print the value of i and is obviously not running the second loop to calculate the margin of error but I don't understand why. Any help? [CODE] // This program was designed to calculate the value of pi import java.util.Scanner; public …

Member Avatar for Hikari123
0
442
Member Avatar for ZeroEddy

Hey, I have been studying Java for a year in college and this year we started Object Oriented Programming. We have been givin some assignments and stuff but they all include creating Objects and Classes. Does anyone know of any good resources for Creating these as I am slowing down …

Member Avatar for ZeroEddy
0
239
Member Avatar for mydreamgirl

Xuggle can handle many different video formats. What I am thinking about is to wrap the Xuggle into Swing component, and make a start/pause button and a progress bar on the top of it. Any suggestions? Sample codes would be great. MyDreamGirl

Member Avatar for mydreamgirl
0
412
Member Avatar for danthevan

Hello, I'm trying to make a chatting app just for educational purposes, to improve my skills and I got a question, or maybe a problem. Look at the Code first: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* …

Member Avatar for danthevan
0
162
Member Avatar for dhija22

hi all ! i want to uninstall java java (TM)SE Developement kid 6...so i try to uninstall it but i cant i take a message like this [COLOR="Red"][B]Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. …

Member Avatar for stultuske
0
80
Member Avatar for dandeliondream

Hi, I would like to enquire about web crawler. I have a sch assignment whereby i need to crawl websites but it has to be specific. Display first 10 urls of websites with keyowrds such as IT products around a shopping street/district. I manage to find tutorials to crawl a …

Member Avatar for Taywin
0
128
Member Avatar for ali11

I did it without using GUI because i am not sure how to do in GUI.I need help to put these code in GUI. [code]import java.util.Scanner; import java.util.Stack; /** This calculator uses the reverse polish notation. */ public class Calculator { public static void main(String[] args) { Scanner in = …

Member Avatar for stultuske
0
277
Member Avatar for hhagood

Using a Single-Array, create a program that asks the user to input a day of the week, the high temperature, and the low temperature. Calculate the Average High and Low.

Member Avatar for Ezzaral
0
451
Member Avatar for lovelyrockrchic

I'm trying to make a Tic Tac Toe game for my Java class. I am not able to use JButtons only JPanels. I'm stuck on the part where my program determines if there are 3 x's or o's in a row. [CODE] public void winner() { if(3 = tictactoe[0].turn + …

Member Avatar for hiddepolen
0
278
Member Avatar for cgen

Can someone please help me go over these codes? There are no bugs in all except LinkedListBinary.java and I have no idea why. The lines that are causing me problems are: [CODE] /** Returns an iterator of the elements stored at the nodes */ public Iterator<E> iterator() { Iterable<Position<E>> positions …

Member Avatar for hiddepolen
0
490
Member Avatar for cgen

Assuming that the values 1 to 7 are equally likely (if chosen randomly): Draw a 7-node binary search tree containing these values that would, on average, give the fewest number of comparisons. I'm not exactly sure how to answer this question

Member Avatar for Taywin
0
326
Member Avatar for drogba123

Hi, Anyone know what is the math for manhattan distance vs travelling distance? and which one is faster? thanks. Regards, Anthony

Member Avatar for Taywin
0
102
Member Avatar for quartaela

hi there i am working on a memory game project and my main problem is when i start the game user must not see the icons of buttons, when he/she press on a button then the i con should reveal, but some methods like [CODE].setPressedIcon()[/CODE], [CODE].setRollOverIcon()[/CODE] dont work if i …

Member Avatar for mKorbel
0
292
Member Avatar for djmonster

Hello, I have a Java homework that I need to extract the data from ASCII Text file. Here is the ASCII text file [url]http://weather.noaa.gov/data/nsd_bbsss.txt[/url] 72;211;KTPA;TAMPA INTERNATIONAL AIRPORT ;FL;United States;4;27-58N;082-32W;27-58-04N;082-31-33W;8;11; 72;212;KCTY;CROSS CITY AIRPORT;FL;United States;4;29-38N;083-06W;29-37-49N;083-06-31W;13;12; 72;213;KAYS;Waycross / Ware County, Ga;GA;United States;4;31-15N;082-24W;31-15N;082-24W;46;46;P 72;214;KTLH;TALLAHASSEE REGIONAL AIRPORT ;FL;United States;4;30-24N;84-21W;30-23-46N;084-21-20W;25;16; 72;215;----;Peachtree City, Ga.;GA;United States;4;33-22N;084-34W;33-22N;084-34W;262;244; I need …

Member Avatar for hiddepolen
0
589
Member Avatar for LiquidSolid

Hey guys, I am making A Vending Machine Program and seem to be getting error's when trying to do things outside a class and stops the Program. (Vending machine should keep looping until Quit is typed, and it will display a summary of money and cans left. [CODE] ******SODA MACHINE …

Member Avatar for Zaad
0
165
Member Avatar for SweaterGirl

I'm a beginner, just starting to take a java class! I'm doing this for homework. When I try to run this, it runs- but when it gets to the question that asks "Which kind- Chocolate Chip or Gingerbread Man?" and I answer, it just skips right to the next question. …

Member Avatar for SweaterGirl
0
163
Member Avatar for neo_31591

[code] BufferedReader reader = new BufferedReader(new FileReader(strPath)); String line; while ((line = reader.readLine()) != null) { out.println(line); } [/code] My textfile is like: Statement1 Statement2 Statement3 the output i get is: Statement1Statement2Statment3 I need the output as it is..same as the text file...i have tried to identify the newline charc …

Member Avatar for neo_31591
0
786
Member Avatar for ilovejava

so this is the assignment Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and …

Member Avatar for Taywin
0
686
Member Avatar for nsyncpilu

Hy , I have a little/big problem : I am a student and i live in a campus where i need to use a proxy and port to connect to internet. The app i made is a management system for a store ... and it is local. I used MySql …

Member Avatar for peter_budo
0
272
Member Avatar for meme dreame

hi everyone i have a program about the smallest and largest values that user input and the program decide which is the largest which is the smallest ,so i solved it and it worked fine but it's giving me the 2 values are the same the largest same as the …

Member Avatar for meme dreame
0
166
Member Avatar for nasimalotaibi

i have error: illegal start of expression can you help me ?? [CODE] public void AddBefor(int befor,int a) { if(head!=null) { if(head.value==befor) { IntDLLNode t=new IntDLLNode(a); t.next=head; head.preve=t; t.preve=null; head=t; } else { IntDLLNode t; for(t=head;t!=null;&& t.value!=befor;t=t.next); if(t!=null) { IntDLLNode t1=new IntDLLNode(a); t1.next=t; t1.preve=t.preve; t.preve=t; t.preve.next=t; } } } } …

Member Avatar for nasimalotaibi
0
151
Member Avatar for ilovejava

lets say i have a grid----->grid[10][10] i want to scan the grid for a char 's' what should I do should I... do a enhanced for loop and how can any show a example

Member Avatar for ilovejava
0
180
Member Avatar for woodenduck

I would like to have a loop that creates a JFrame, sets it visible and waits until that JFrame is disposed of before creating another. Is this possible? A solution would be greatly appreciated I can't seem to figure this one out. ex: [CODE]for(int i=0; i<5; i++){ JFrame foo = …

Member Avatar for woodenduck
0
150
Member Avatar for Goyle

Hi, for the life of me I can't solve this problem. I've solved problems far harder, but this is just baffling me. The problem: [I]Write a program which reads a sequence of integers from the standard input (the keyboard) and prints the largest value read to the standard output (the …

Member Avatar for Goyle
0
189
Member Avatar for mrjillberth

[CODE] package semBreak; import java.io.*; public class YLingaw { public static void main (String [] args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); char[][] board = { {' ','1','2','3',' '}, {'1',' ',' ',' ','1'}, {'2',' ',' ',' ','2'}, {'3',' ',' ',' ','3'}, {' ','1','2','3',' '}}; YLingaw.ehem(board); …

Member Avatar for JamesCherrill
0
157
Member Avatar for Vreality

How would you create a basic search engine? Could this search engine also search based upon tags? (Not searching a site or database but just a .txt document) Thanks in advance!

Member Avatar for Vreality
0
240
Member Avatar for alex8206

I have created a home page with a division in which 2 other JSP pages are to load. The validations fire properly when I lauch those 2 pages seperately. The problem is, validations arent working when they load within the first page. How can I solve this? Should i write …

Member Avatar for Taywin
0
188
Member Avatar for rajeshredy

the problem im faceing here in my code is The events that i want to happen are not occuring after i select an item from the combobox,and also all other components are showing the same faulty behaviour. the faulty behaviour that they are showing is they are not firing the …

Member Avatar for JamesCherrill
0
485
Member Avatar for friendskhaled

Please Help me I can't start with this project ! Implement a city 'database' using unordered lists. Each record contains the name of the city (a character string of variable length), the mayor of the city and the co:ordinates of the city as integer x and y, Your system should …

Member Avatar for masijade
0
270
Member Avatar for TheComputerGuy

So when I compile, everything will compile just fine. When I go to run the program, I get this error [CODE]Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at ClientForNoDupCollection.main(ClientForNoDupCollection.java:20)[/CODE] I go to look at line 20(actually 19-21) [CODE]public static void main(String args[]) { File file = new File(args[0]); Scanner cReader = …

Member Avatar for masijade
0
197
Member Avatar for mikej39

I have this code i compile it and it ran but nothing came up can someone help with this? [code]import java.util.Arrays; import java.util.Comparator; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.DecimalFormat; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import …

Member Avatar for Zaad
0
180

The End.