31,001 Topics

Member Avatar for
Member Avatar for TekknoDraykko

Greetings again! I'm learning how to write to and read from databases using JDBC, (using Netbeans) and I've run into a snag. I'm trying to save data to a database, but when I try the following exception message is thrown: Column 'COURSEID' is either not in any table in the …

Member Avatar for TekknoDraykko
0
363
Member Avatar for Litherz

I'm creating a simple game in Netbeans but I've come across a problem, when I've 500 coins and I try to add more, the total coins value will go to -1 therefore I think I need a else if statement in my code to stop and display a error message …

Member Avatar for Schol-R-LEA
0
112
Member Avatar for nitish.mohiputlall

Original question is as follows in the text box it should display 1 + 2 and upon clicking equal it should display the sum. With three values there are many combination 1+1,2+3+3, 1+3+3 .... but it is not working please help? the codes are not complete i'm just testing it …

Member Avatar for stultuske
0
253
Member Avatar for sarthak25

How can I convert videos (flv, wmv, mov, m2v, etc..) to mp4 format ? Actually, I'm trying to embedd videos in my web application (on a web browser), but to play them (flv, wmv, mov, m2v, etc..), user needs to add plugin (vlc, wmp, etc). But HTML video tags plays …

Member Avatar for jwenting
0
2K
Member Avatar for terence92

Hi, I have this element {1, 1, 2, 3}, so i have an duplicate element. I want generate combinations and my result should be: {1} {2} {3} {1 1} {1 2} {1 3} {2 3} {1 1 2} {1 1 3} {1 2 3} {1 1 2 3}. The order …

Member Avatar for rubberman
0
151
Member Avatar for borhane

need help in programing application based ELCTRE I method , problems with input using jtable .

0
86
Member Avatar for Miran_Leli

`The exercise is to enter one number (n1) and after the user has to enter n1 numbers.Then it has to be printed the number of negative numbers out of the n1 numbers added. So if the user decide that n1=5 and then add 5 numbers : 3,4,5,-1,2 the program should …

Member Avatar for JamesCherrill
0
643
Member Avatar for hefaz

Help me, What is @override in Jave? i can't understand a bit of the code in jave, when i am reading an android game source code. Thanks

Member Avatar for hefaz
0
129
Member Avatar for pars99

I'm making a program that takes the last letter and second to last letter of a name and displays a formatted version in front of the name. I'm passing an array to hold all the names and it seems to work properly, but it displays null before each output. Why …

Member Avatar for stultuske
0
135
Member Avatar for divinity02

this assignment here was my take home assignment. I am kinda doing it over just to see and know where i went wrong with. it is either my codes wrong somewhere but am not getting the required output. I had to do two methods along with two arrays. dont know …

Member Avatar for JamesCherrill
0
250
Member Avatar for ali11

Hi I am trying to move JTabbedPane down below top panel.I want it where the bottom panel begin.Thanks. import java.awt.*; import javax.swing.*; public class GridBagLayoutTest { JPanel bottomPanel; JPanel topPanel; public GridBagLayoutTest() { JFrame frame = new JFrame("GridBag Layout Test"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocationByPlatform(true); JTabbedPane tabbed=new JTabbedPane(); tabbed.add(bottomPanel,"One Way"); tabbed.setBounds(12, 200, 20, …

Member Avatar for JamesCherrill
0
183
Member Avatar for Surajit_1

I am trying to experiment with the whole idea of creating two text files then write to one of them, rename the second file with the first file and then deleting the first file. I have a school project where i need to apply this concept. So, before i actually …

Member Avatar for rubberman
0
293
Member Avatar for Hind_1

im new to java and this is my first assignment can anyone help me solving it: compile the class final grades, based on the students’ scores obtained in the classwork, mid-term, and final exams. According to the course syllabus, the classwork accounts for 65%, the mid-term exam accounts for 15% …

Member Avatar for JamesCherrill
0
365
Member Avatar for arup_1

javac Cannot find my Example.java file after saving it in c:\program..\java..\bin\!! i am using win 7 (64 bit). Following points are so confusing.. 1. **Even i cannot** see the file in that directory form window!! 2. If i want to copy it 2nd time, windows ask me to **"overwrit"**. (Means: …

Member Avatar for stultuske
0
249
Member Avatar for no123

i've made the game Othello in java and i need a way to display to the player, the move the computer did. i can't just return a-6 or d-5 because the size of the board can be changed. anyone has a way? thank you in advance :)

Member Avatar for no123
0
142
Member Avatar for sciwizeh

Hello All, I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from happening? here's my code: [CODE=java] import javax.swing.*; /** * Main frame for …

Member Avatar for reguieg
0
333
Member Avatar for divinity02

tell me if my codes is correctly done in calculating the gpa and the quality points and calling the methods for the gpa and quality points because my output is reading zero. i have also to write two arrays to store both the students grades and course. have no idea …

Member Avatar for stultuske
0
215
Member Avatar for Brandon_7

I had a test in AP Computer Science and I got the following question incorrect: Given the following class A public Person class is written, and the class has two private String instance variables to store the person's name: one named firstName and one named lastName. The class has two …

Member Avatar for Markland
0
2K
Member Avatar for anirodacilis

Hello, I am another newbie, trying to finish an assignment, and I would need some help in splitting a string from serial. I use the demo code for eZ430-RF2500 Wireless Sensor Monitor, where I changed only the tx of the access point's temperature(by commenting it), with the purpose of displaying …

Member Avatar for JamesCherrill
0
365
Member Avatar for no123

I'm making the game Othello in java and I need to make an AI which will be a good rival and very challenging. I've read all about search trees,alpha beta pruning,minimax and others. I understood the principles but what I didn't understand is how do I start the code (what …

Member Avatar for rproffitt
0
163
Member Avatar for centenond

So im doing a MMO, wich will have a lot of entities, monsters, players etc .. So i want opinions from you experts, wich a aproch should i go for... create the entity when its near the view port so that the game dnt struggle updating each entity or will …

Member Avatar for centenond
0
145
Member Avatar for n21115

I've searched extensively for this, but failing to arrive at a proper solution, I had to proceed with this question. I have just recently started learning JavaFX/Java and I am trying to build a table which, along with some other columns, would have a single ProgressIndicator column. This means that …

Member Avatar for JamesCherrill
0
1K
Member Avatar for mmmmmmmm

I have a array of string I will call a method on this array for each of the element of it ,the method will return one integer,but some of the elements are the same then I do not want to call the method . for example this is the array:{aa …

Member Avatar for JamesCherrill
0
185
Member Avatar for ali11

Hi I am creating a program in which I have 2 tabs. I want to make my tabs bigger in size so they can take whole panel space. Is there any way I can make both tabs size bigger. thanks import java.awt.*; import static java.awt.Font.BOLD; import java.awt.event.*; import java.awt.event.*; import …

Member Avatar for JamesCherrill
0
2K
Member Avatar for london-G

Hello, I am developing a database system and as part of a project I have been asked to look into fault tolerance. From what I understand a fault tolerant program is a program that is not vulnerable to errors. Any ideas how I can ensure that the program I am …

Member Avatar for Schol-R-LEA
0
184
Member Avatar for shockwave_05

Implement a shape hierarchy. you must have your superclass [B]shape[/B] and 2 subclasses [B]two-dimensional shape[/B] and [B]three-dimensional shape[/B]. Under two-dimensional shape, you have other subclasses, [B]circle, square, and triangle[/B]. Under the three-dimensional shape you have the [B]sphere, cube, and tetrahedron[/B]. Each two-dimensional shape should contain a method [I]getArea[/I] to calculate …

Member Avatar for wiggles29
0
5K
Member Avatar for Joseph_13

Can someone kindly help me with a solution to this assignment http://math.hws.edu/eck/cs225/s09/lab9/ CPSC 225, Spring 2009 Lab 9: Sets in the Java Collection Framework For this week's lab, you will use two of the classes in the Java Collection Framework: HashSet and TreeSet. You will use these classes to implement …

Member Avatar for stultuske
0
792
Member Avatar for kovacsakos

I have a 2D arraylist, named as adjLists, which contains arraylists, containing values like these. Each two values are a "pair" and each third is a "flag" for the pair. [278, 106, 0, 397, 36, 0, 59, 208, 0, 366, 221, 0] [366, 221, 0, 397, 36, 0, 132, 390, …

Member Avatar for kovacsakos
0
676
Member Avatar for Levellous

Hellooo, Is there a way to compare a datagram packet's IP address with the host's IP address? Because i have a client/server (client is acting as a client & server) class that uses multisocket to broadcast to every host it'll send the datagram to itself as well, which i don't …

Member Avatar for Levellous
0
247
Member Avatar for Vanquish39

How can I rewrite this with java config? <int-kafka:outbound-channel-adapter id="mainOutboundChannelAdapter" kafka-producer-context-ref="kafkaProducerContext" channel="mainOutboundTopicChanel"> </int-kafka:outbound-channel-adapter>

0
140

The End.