32,199 Topics

Member Avatar for
Member Avatar for helpmepassclass

i am writing a program for my java class and have to create a calculator, i got the calculator to work for two numbers but can't get it to do more than two numbers and it needs to. any help will be greatly appreciated. If you take out the tnum …

Member Avatar for BestJewSinceJC
0
96
Member Avatar for squigworm

Hello everyone, I am writing a program that will read data from a txt file and for the life of me I cannot get it to do so ... Seems like no matter what ! I do it keeps telling me it cannot find the file .. I have used …

Member Avatar for BestJewSinceJC
0
131
Member Avatar for ku95

I'm currently doing a model, however its occurred that I'm getting 1 error that which is saying that the && operator. I don't fully understand why that is. If there is a solution to this that would be great, also with a good explanation why I have made this mistake …

Member Avatar for BestJewSinceJC
0
3K
Member Avatar for pringles08

[code]public String viewByItemCode(String icode) { String search = " "; for( ; x<recordNum ; x++) { if(itemRef[x].getItemCode() == icode) { search = ("\nItem Code: " +itemRef[x].getItemCode()+ "\nItem Description: " +itemRef[x].getItemDesc()+ "\nItem Unit Price: " +itemRef[x].getItemUnitPrice()+ "\nItem Quantity: " +itemRef[x].getItemQty()+ "\nItem Unit Measure: " +itemRef[x].getItemUnitMeasure()+"\n"); } } return search; }[/code] Supposed …

Member Avatar for pringles08
0
105
Member Avatar for Amresh.K

import java.awt.*; import java.awt.event.*; import javax.swing.JApplet; public class CarApplet { private Image carLeft = null; private Image carRight = null; private Image carUp = null; private Image carDown = null; private Image carImage = null; private int direction = -1; privte Point carLocation = new Point(25,25); ? /*Over here this …

Member Avatar for Katana24
0
109
Member Avatar for funnychild

hi, i just wanted to know why do we need drivers in java to connect to a database when we do not have any such driver for PHP? [CODE]String str = "com.mysql.jdbc.Driver"[/CODE] any help will be greatly appreciated

Member Avatar for jwenting
0
48
Member Avatar for asduae
Member Avatar for jwenting
0
86
Member Avatar for squigworm

Hello everyone, I am interested in creating a program that A).. displays a picture at random from a specific pool of images as a screensaver ,, and B) allows the user to set a time frame in which one of the pictures will randomly pop up on the screen.... Can …

Member Avatar for squigworm
0
72
Member Avatar for Sanita

Hellow. Am new with java programming. i have created GUI frame and the database but i dont know how to retrieve data from the database table and how to write data into the database table. Please can any one help me as soon as possible.

0
20
Member Avatar for hsncvs

hi guys i want to learn if there is an equivalent of " vblf " (from visual basic) or " \r " (from c#) in java ?

Member Avatar for darkagn
0
78
Member Avatar for blackx
Member Avatar for gnarly

I'm reading in a text file and want to parse based on labels within the text file. At first I was trying to do this with patterns, but after spending some time reading the API documents, I'm not sure what I need. I think I'm making this too complicated. Example …

Member Avatar for BestJewSinceJC
0
99
Member Avatar for ttboy04

I want to make an object move to a new height from the user request. My code below does not do that. Where am I going wrong. thanks in advance. /* instance variables */ private Aobject object; public void moveObject () { int number; { number = Integer.parseInt(Dialog.request("Enter new height?")); …

Member Avatar for ttboy04
1
93
Member Avatar for scripter_tmrage

Hi buddys at school we are now working with functions and derivates (or how you spell it) and im getting kind of tired to write the same thing the hole time in the calculator and on the paper plus the fact that i need something to program. So i was …

Member Avatar for scripter_tmrage
0
185
Member Avatar for Ozz017

So I finaly managed to compile HelloWorld, but only by typing out the entire C:\progra~1\java\jdk16.0.2\javac HelloWorld.java, which left me with some serious blisters on my fingers... Is there some way I could be able to just say Javac HelloWorld.java? Thanks if you reply, I'm kinda new to this stuff

Member Avatar for jwenting
0
56
Member Avatar for Nick Evan

I do not often visit the Java forum, because I know nothing worth posting in the Java forum :) But when I [I]do[/I] visit, I see a lot of posts with code without code-tags. This makes the code nearly unreadable and reduces the overall quality of Daniweb. So I have …

Member Avatar for Nick Evan
0
165
Member Avatar for MaroHail

Design a GUI program in Java to perform search, check-out and return of books for a library. Thank You

Member Avatar for peter_budo
-2
80
Member Avatar for khess

What the hell is up with [URL="http://www.oracle.com"]Oracle[/URL] lately? First, they stopped giving away the Solaris operating system and now they have some big announcement planned for next week at the [URL="http://en.oreilly.com/mysql2010"]MySQL Conference[/URL]. Should we hide our wallets before we listen? To me, Oracle has morphed into [URL="http://www.microsoft.com"]Microsoft[/URL] II with all …

Member Avatar for jwenting
-1
404
Member Avatar for Encrypted

I'm trying to convert a row from a matrix of Char's to a String and all I've been able to get is a bunch of memory locations. I was hoping someone can lend me a hand. Here's what I've got: [CODE] for(int c=0; c<tempBoard.length; c++){ String charArray = " "; …

Member Avatar for Encrypted
0
151
Member Avatar for digital_dizasta

hi guys, i am doing a final year project regarding the ontology population using information extraction. i am to use Java and GATE. i need some help in the part of information extraction as this is supposed to be coded in java. so please...help me start off my project. all …

Member Avatar for agugglez
0
139
Member Avatar for jad0521

Hi, I'm trying to write a program that asks the user to enter a series of text lines and then stop and write those lines into a text file. I tried to use this: String newFileName; String line; PrintWriter outputStream = new PrintWriter(newFileName); while( line.length()>0){ line = keyboard.next(); outputStream.println(line); } …

Member Avatar for jad0521
0
3K
Member Avatar for Sammich

hey guys, i was wondering if anyone could tell me how to separate individual digits of an integer in order to store those individual digits into an array? I need to create a circular shift method so I was just going to separate the digits of the number, put them …

Member Avatar for BestJewSinceJC
0
439
Member Avatar for Raiko

[CODE] import java.io.*; import java.util.*; public class array { public static void main(String[] args) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { in = new FileInputStream("input.txt"); BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String line = null; while ((line = reader.readLine()) != null) { String split[]=line.split(","); …

Member Avatar for BestJewSinceJC
0
97
Member Avatar for at004

Hey all, thank you for taking time to help me out, I am in need of some help. This is what is required from me: [QUOTE]Develop 3 ordered collection classes each storing a collection of Album objects in a sorted order but implemented in a different way as follows: 1. …

Member Avatar for at004
0
138
Member Avatar for bettybarnes

this problem contains three classes, WordData, WordDataSet, and WordDataTester. each class already contains the necessary structure. the WordData class creates a unique word. it allows the tracking of the string [U]word[/U] and the integer [U]frequency[/U] of the word's usage. [LIST] [*]public WordData(String w) initializes the word to w and frequency …

Member Avatar for bettybarnes
0
118
Member Avatar for sean12

Im having trouble with an assignment that I was given. here is the assignment and the code I have so far. The Telephone Lookup application The task The goal of this assignment is to design and write a program that does a telephone lookup. The program reads a data set …

Member Avatar for BestJewSinceJC
0
208
Member Avatar for jismtu

Hi i am doing a project in java netbeans. I have connected a bluetooth devie with my computer now in netbeans if i press scan button so computer should scan and find blutooth device near to it. Is that any one who can help me how to create such a …

0
26
Member Avatar for ttboy04

Hello, What I want to do is reset the pig's position to 0 and it's colour to pink. I don't how if I amended the the constructor correctly so the final line sends a resetCount() message to the newly created Animal object. The above code is not working because nothing …

Member Avatar for ttboy04
0
268
Member Avatar for rena0514

i am trying to create a tic tac toe GUI but i am having trouble...here is my code: [CODE]import javax.swing.JFrame; public class TtTDemo { public static void main(String[] args) { JFrame frame = new JFrame ("TicTacToe"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new Main()); frame.pack(); frame.setVisible(true); } } [/CODE] [CODE]import java.io.BufferedReader; import java.io.IOException; …

Member Avatar for peter_budo
0
387
Member Avatar for bbetzel

So I need to make an 8x8 grid, that each square intitially is white, but when the mouse is clicked in one of the panels, it is changed to a random color. I started with a gui then input 64 individual panels, but is there an easier way to do …

Member Avatar for JamesCherrill
0
34

The End.