32,204 Topics

Member Avatar for
Member Avatar for redtribal23

Why this doesn't work? class Faculty extends Employee { private long[] officeHours; private String rank; public Faculty(long[] hours, String rank) { this.officeHours = hours; this.rank = rank; } public static void main(String[] args){ //some code here Faculty f = new Faculty(newToken[], tokens[tokens.length-1]);

Member Avatar for vivekH
0
255
Member Avatar for mee123

import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class Main { public static void main (String[] args) throws Exception { Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/convocation","root",""); //ImageIcon icon = new ImageIcon("C:\\Users\\a\\workspace\\MysqlName\\img\\U.png"); //JOptionPane.showMessageDialog(null, "Custom", "Custom Image", JOptionPane.INFORMATION_MESSAGE, icon ); int id_convo= Integer.parseInt(JOptionPane.showInputDialog(null,"Please Insert Student Convo ID\n(eg:01,02,03)", "U …

Member Avatar for stultuske
0
132
Member Avatar for akam aziz

1. N-queen problem The n queens puzzle is the problem of placing n chess queens on an n×n chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. Solutions exist for all natural numbers n with …

Member Avatar for JamesCherrill
0
327
Member Avatar for Benny_1

Hi guys. I'm working on a christmas present for my dad, it's a program that installs 8 Black Keys songs on his computer. I'm having some trouble with it though. I can't figure out how to get the files out of the jar file. I used to access them with …

Member Avatar for Benny_1
0
445
Member Avatar for Search_not

I am making my own component similar to the JOptionPane, but with some added GUI components specialised for my current project. I have finished with the GUI of the component, but I do not know how to make wait for the user to enter input before continuing, as the JOptionPane …

Member Avatar for Search_not
0
418
Member Avatar for divinity02

hey you guys I just want to take this time to wish your guys a merry christmas and a bright and prosperous new year, I know that I will have to do over this programming course in the next semester even though i havent got any result yet. still havent …

Member Avatar for JamesCherrill
3
148
Member Avatar for hwoarang69

I have created a height score class by keep track of time. In this class top 5 score are saved in file using Preferences and than they are display on screen. First I am setting up top5Time array by filling in all zero's. Than I am getting top 5 time …

Member Avatar for Traevel
0
249
Member Avatar for hwoarang69

I have a 2d array and I want to check if its in increasing order. here is a example of 2d array increasing order: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, here …

Member Avatar for JamesCherrill
0
245
Member Avatar for hwoarang69

How can I create a TextureRegion into button in libgdx-android(java)? I found a simailar solution here: http://stackoverflow.com/questions/21488311/libgdx-how-to-create-a-button problem is that it is using BitmapFont and I am not. I upload a image using TextureRegion and now I want to turn this image into button. any ideas?

Member Avatar for hwoarang69
0
181
Member Avatar for smurfy

Hello Geeks; In the eve of new year i have some fresh topics for you. I heard that web is full of real life oop design samples and comprehensive object oriented design guides. Which sites would you offer or which tutorial sequence should i follow ??? PS. Of course other …

Member Avatar for JamesCherrill
0
232
Member Avatar for rhada79

Need Assistance Please. My code is not adding the size and the toppins: import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; import java.util.EventObject; public class PizzaCalculator extends JFrame implements ActionListener { JPanel westPanel = new JPanel(); JPanel eastPanel = new JPanel(); JPanel centerPanel = new JPanel(); JPanel northPanel = new …

Member Avatar for rhada79
0
3K
Member Avatar for Steven_10

Hello I am studying for the 1Z0-803 (Oracle Certified Associate, Java SE 7 Programmer) exam and I have the hardest time with following the flow of nested loops. On practice tests I do ok on more complex concepts like polymorphism but I miss over half of question with nested loops. …

Member Avatar for JamesCherrill
0
275
Member Avatar for jalpesh_007

Hello, I am working on project of developing video stagenograhy. i have referred following link. http://www.dreamincode.net/forums/topic/269189-video-steganography/ also read a lots of material on it and found total 10 encoding and decoding algorithm. please send/suggest me good material for video steganography. Just let me know how can encode/decode my message using …

Member Avatar for rubberman
0
154
Member Avatar for divinity02

hi all just a question. if you are making a if statement in a game and the compile is not reading the condition in the if statement and it jumping out and reading the rest of the codes what is the cause of that. I am trying to build my …

Member Avatar for rubberman
0
167
Member Avatar for divinity02

hi Iam doing a payroll system for a compny where I have to implement a program to calculate workers pay. for commission paid workers, hourly paid workers and fixed monthly paid worker. i have done the codes but something is wrong somewhere between the codes. cant tell if it is …

Member Avatar for JamesCherrill
0
274
Member Avatar for jonardy

This project deals with EOF-based loops, using the while construct where we do not know the exact number of times a loop will iterate (perform the associated block of code). We will continue to build on our knowledge of if/else constructs. Use the variables given below to solve the problem. …

Member Avatar for JamesCherrill
0
214
Member Avatar for divinity02

it it is me again. I am know guys are probably thinking am bothersome here is my question. it is about the java game am building no I havent finish it yet, still having some trouble i have declare this syntax, I know that I have asked this question before …

Member Avatar for divinity02
0
243
Member Avatar for ankit1122
Member Avatar for JamesCherrill
0
147
Member Avatar for sallubhai

Hi I wanted to draw a field like this photo which I have attached. I would appreciate your help. I have wrote so much now: for (int x = 2; x < 12; x++) { for (int y = 2; y <= 12; y++) { g.drawRect(40*x, 40*y, 40, 40); } …

Member Avatar for JamesCherrill
0
301
Member Avatar for chahinez.abdelo.9

product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j]

Member Avatar for chahinez.abdelo.9
0
190
Member Avatar for FruitPunch

I can't figure out the code for, 1) Get an error message dialog when there's no input in the textfield. 2) Get an error message when you put alphabets or other characters except for numbers.

Member Avatar for Freaky_Chris
0
262
Member Avatar for GoneGirl

SO i feel totally annoying but I got to ask for advice. As you see in the title im trying to call a constructor from an other class. Im trying to add and create a new gymMember for every weight that is found in the file into a new array …

Member Avatar for GoneGirl
0
163
Member Avatar for My_1

I got 1 when i pass button and if i pass the second timeis still 1 not is ++ int click = 0; public ButtonHandler(int x, int y, MineGrid g) { row = x; col = y; grid = g; } public void actionPerformed(ActionEvent event) else { click ++; JButton …

Member Avatar for My_1
0
175
Member Avatar for StarZ

How come this program doesn't run? Well.. not just this program, all my other ones. There are no mistakes, I wrote the code as this textbook says but its not running and its giving this error (on dr java): 1 error found: File: (no associated file) [line: (no source location)] …

Member Avatar for stultuske
0
426
Member Avatar for jonardy

This class is designed to test the efficiency of the two search models. You will simultaneously populate both arrays with the same random numbers. This will guarantee that both arrays have the exact same content. Sort only ONE array using Arrays.sort. This sorted array will be used with the bin_search …

Member Avatar for jonardy
0
119
Member Avatar for GoneGirl

Hi guys, Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok. I have a lot of code but I just took out this one little part that i wanna be able for a …

Member Avatar for GoneGirl
0
136
Member Avatar for smurfy

Hi everyone ; Thanks to Dani, there are lots of links provided around the topics like this. I am a single Java programmer, writing short java programmes in Eclipse. However, i need to work with others and produce long but managable java codes. Briefly my ambition is : 1.Creating some …

Member Avatar for smurfy
0
501
Member Avatar for ali11

getting following error: incompatible types: vmpr cannot be converted to JFrame JFrame VendingMachine = new vmpr(); import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.*; import javax.swing.*; import javax.swing.JFrame; public class vmgu extends JFrame implements ActionListener { public JButton button[]; public JLabel label; public JLabel label2; public …

Member Avatar for stultuske
0
346
Member Avatar for cool_zephyr

I need to create stateful web pages consisting of various forms to be filled up by the user. I want to make UI tools look something like that DOJO framework provides. My problem is what tool is better suited for this type of website?? DOJO+JSP ? (but i'm confused about …

0
97
Member Avatar for divinity02

hi guys remember that I had a game to build and was asking for help, well I spoke with my lecture and the game what I was talking about is more or less a program. it is a Java multiplication table math game but I have to build it like …

Member Avatar for Taywin
0
198

The End.