35,618 Topics

Member Avatar for
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
188
Member Avatar for vitroblue

hi i want to display the selected values from a "select" object into a new window with jsp but no matter what i do, it always writes "null" can you help me? this is mi code [CODE] <form id="form1" name="form1" method="post" onsubmit="revisar()" action="echo.jsp"> <table width="699" border="0" cellspacing="10" cellpadding="4"> <tr> <th …

Member Avatar for javaAddict
0
160
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
57
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
166
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
84
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
428
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
155
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
141
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
451
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
98
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
140
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
127
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
210
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
28
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
270
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
390
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
35
Member Avatar for anjal_pawar

Write a program to print * / * / * / * / * / * / * / using two child thread. One thread responsible for printing * and another for /

Member Avatar for MaraShyla
0
173
Member Avatar for bigbags911

[CODE]public class TicTacToe3 { public static void main(String[] args){ } int input = 0, turn = 0, mov = 0; String sq1; int[][] table = new int[3][3]; int play; public void table() { for (int row=0; row < 3; row++) for (int col=0; col < 3; col++) table[row][col] = ((row …

Member Avatar for parry_kulk
0
99
Member Avatar for senormateo2011

[B][I]Write a program that allows the user to display 1, 2, or 4 images in a grid of panels. At program startup, the user is prompted ofr the number of images. If the input number is not 1, 2, or 4, the program quits with an error message. Otherwise, the …

Member Avatar for biedi
0
294
Member Avatar for bahr_alhalak

[COLOR="red"]Hi every one, I need ur help on this part of my project i cant know to solve it and i done what i can....[/COLOR] the problems are: 1- the time must be update with time of computer but i cant do it just I take the current time??? 2- …

Member Avatar for bahr_alhalak
0
112
Member Avatar for Nirupams

Dear all, How do I set particular color in a specific cell in JTable using Netbeans ? I have searched using google but not found any significant answer. Thanks and regards, Nirupam.

Member Avatar for moutanna
0
142
Member Avatar for Usmaan

G'Day Everyone. I was wondering whether someone can help me with my Java project. I have two interfaces, say: Interface1 and Interface2. On both interfaces, there is one JButton. When the Jbutton is clicked, the current window closes and the other one opens up and vice versa for the other …

Member Avatar for Usmaan
0
90
Member Avatar for adity

I have a table that outputs certain rows.But they are from different groups and the different groups are stored in different vectors.At present i am adding all the rows using the following code : [CODE] m_vector.addAll(match1); m_vector.addAll(match2); .. m_vector.addAll(matchn); [/CODE] Here match 1 to match n are the different sections.I …

Member Avatar for javaAddict
0
181
Member Avatar for pirateninja1111

how would i keep adding a random integer to the end of an arraylist? the amount of random numbers to be added is not set

Member Avatar for jwenting
0
88
Member Avatar for girlymind

can u help us to solve this problem ')' expected in line 4 this is my error in this program...pls help me.... [code]public static void removeFile(){ String ans=" "; try{ System.out.print("are you sure you want to delete this file ["my file+"]y=yes/n=no"); ans=stdin.readline().Trim(); if(ans.equals("y")){ if (myfile.exists()){ } myfile.delete(); } else System.out.println("Successfully …

Member Avatar for masijade
0
62
Member Avatar for saggykulji

import java.util.Scanner; import java.util.Deque; public class MyDeque { private int maxsize; private int [] queArray; private int front; private int rear; private int nItems; public MyDeque (int s) { maxsize = s; queArray= new int[maxsize]; front=0; rear=-1; nItems=0; } public void insertFront(int j) { if (front==0) front=maxsize; queArray[--front]=j; nItems++; } …

Member Avatar for javaAddict
0
596
Member Avatar for bigbags911

[CODE] public class TicTacToeGame { public static final int board_size = 3; // number of rows or columns in the board public static void main(String[] args) { char board[][] = new char[board_size][board_size]; // the game board TicTacToeGame p1 = new TicTacToeGame(); // create the players TicTacToeGame p2 = new TicTacToeGame(); …

Member Avatar for javaAddict
0
75
Member Avatar for abdulraqeeb33

Hi, I have an android application that requests a list of objects from a servlet. The first time I run the android application it works fine by sending the correct list. But when I run the application for the second time, it returns the list that it has already sent …

Member Avatar for jwenting
0
116

The End.