32,204 Topics

Member Avatar for
Member Avatar for Pyler

I'm trying to implement a hangman game using linked lists but not getting anywhere. I want guessed characters to be inserted in a Linked list of chars at a position that corresponds to the character's position in the word they are trying to guess.(See example at bottom.) For some reason …

Member Avatar for JamesCherrill
0
2K
Member Avatar for V3N0M

Hi everyone I am coming from a C background and I am finding it hard to understand wrapper classes and unwrapping them and their use. Can anyone tell me how they work in english that is easy to understand. And what is an object is it a variable, a data …

Member Avatar for JamesCherrill
0
148
Member Avatar for BeganMemory

At this point I know how to utilize Google Maps within Android but it always seems to take up the full window, there is an image below which shows what I'm attempting to accomplish (having a box below the Google maps where I can store text i.e. "Hello World" **How …

Member Avatar for peter_budo
0
460
Member Avatar for CoilFyzx

Howdy-ho. I am trying to right click on my table and change the cell border color and highlight color of that cell. I have figure out how to give that particular cell focus when I right click it by using int row = fixed.rowAtPoint(evt.getPoint()); int col = fixed.columnAtPoint(evt.getPoint()); fixed.changeSelection(row, col, …

Member Avatar for mKorbel
0
678
Member Avatar for abhishek.anand.37017794

class Simple { void display() { System.out.println("ant hnkg"); } class Local { void msg() { System.out.println("inner"); } } public static void main(String args[]) { Local l = new Local(); l.display(); } }

Member Avatar for balaji.ghadage
0
1K
Member Avatar for chrisschristou

hello every daniweb friend. i have a javascript code which check if a field is empty `onSubmit` it alert a error line 15 but i don't it to alert i want to tag this link to open this html link `<a href="#login-box" class="login-window">Login / Sign In</a>` and i don't have …

Member Avatar for chrisschristou
0
193
Member Avatar for CoilFyzx

Hello good day. I have an idea for my program. I have a Table in my display. I want to add a Component to - let's say - the right of my screen. When I click this component it should display to me buttons and other components that I have …

Member Avatar for JamesCherrill
0
530
Member Avatar for Doogledude123

Alright, so I am thinking about an idea of a useless application, however it is interesting me. A 3D "perspective" of color. I know, confusing. But think of it this way: Movement given an x, y, z coordinate. Color given r, b, g = x, y, z I was also …

Member Avatar for Doogledude123
0
288
Member Avatar for kim2_0016
Member Avatar for fliponymous
0
543
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Member Avatar for GUIPaPa
1
493
Member Avatar for havoc0921

I have an assignment for my cps class in which we have to create a program that will import a file from a server that has a bunch of numbers in it. The program is suppose to take those numbers, sort them, give the minimum and maximum value, average, median, …

Member Avatar for JamesCherrill
0
220
Member Avatar for jalpesh_007

dear all, I just want to know how can i open any jsp page of my project from swing button of jframe. Do i have to use URL class and its methods or i can directly pass localhost address and run it. please reply. Thank you.

Member Avatar for masijade
0
161
Member Avatar for OldDeveloper01

Hello, im trying to make a mulitple choice quiz in for android. Im a newbie at this and i am having some difficulites with the logic. As you can see what i have done below is create two arrays, questions and answers. The first option within each of arrays of …

Member Avatar for muralidhara_1
0
3K
Member Avatar for Compton11

I had a technical interview last week for a Java Software Engineer position. They asked some pretty basic questions such as: 1) What's the difference between an abstract class and an interface? Which do you use more? 2) How does garbage collection work in Java? 3) What is the difference …

Member Avatar for jwenting
0
317
Member Avatar for jalpesh_007

Dear all, I am making MS Access database connection with my java program. As i know that in Connection Following things are required: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:DSNname","Username","password"); Now i have created System DSN in Odbc data connection and also i have attached database with that DSN. While creating DSN, …

Member Avatar for jalpesh_007
0
417
Member Avatar for pekemp23

Assignment is as follows: **Create a GUI-based program to accept name of donor, name of charity, and amount of pledge from the user. Display a list of entries in a JTextArea or JTable. Submit the .java source file or files for this program. Do not use any package statements in …

0
105
Member Avatar for LooN_iE

[code=Java] package newuser; import java.io.BufferedReader; import java.io.FileReader; public class Main implements ServerConstants { public static void main(String[] args) { BufferedReader lnr = null; String line = null; int N=1000; int totalRecords = 0; String [][] array = new String[N][]; try { lnr = new BufferedReader (new FileReader("LoginData.txt")); for (line = …

Member Avatar for ncmathsadist
0
300
Member Avatar for angel06

Hello guys would someone please help me fix my program. I have two classes the one is named GetValues and the other one is SampleReturn. The GetValues class has an error illegal start of expression in the line `public static String kuhaName()` . The code is below. GetValues class codes: …

Member Avatar for ncmathsadist
0
579
Member Avatar for trubble

I was tasked to make a program that took a string input, then reversed it using recursion. I'm getting a syntax error causing an exit code 1. Also, I'm sure there may be an error in the code as I'm not very strong with recursion. Any help with this (specifically …

Member Avatar for JamesCherrill
0
180
Member Avatar for eldiablo1121

Hello, I have to write a program that will solve polynomials by user input, my program compiles, but gets an exception error. Here is my code: import java.io.*; import java.util.Scanner; import java.util.LinkedList; public class PolynomialList { private Node first = new Node(0, 0); private Node last = first; private static …

Member Avatar for JamesCherrill
0
1K
Member Avatar for seethu214

An n x n matrix is a positive Markov matrix if all of its elements are positive and the values in each column sum to one. Write a program to check whether a 3 x 3 matrix is positive Markov. Your program should prompt the user to enter a 3 …

Member Avatar for JamesCherrill
0
178
Member Avatar for shaiqi

Hello! friends i am a beginner to java can someone tell me about the basics and its coding ,please.

Member Avatar for JamesCherrill
0
54
Member Avatar for SpottyBlue

I have a problem with creating UML diagrams. This is the first time. Here is the question below: ![95deb5f1a4dee1451aa7528c291781f8](/attachments/large/4/95deb5f1a4dee1451aa7528c291781f8.jpg "95deb5f1a4dee1451aa7528c291781f8") And here is my answer: ![22e4ba8767e9a4c011bd3c4e799e9c31](/attachments/large/4/22e4ba8767e9a4c011bd3c4e799e9c31.png "22e4ba8767e9a4c011bd3c4e799e9c31") Please check if there is anything wrong.

Member Avatar for rubberman
0
409
Member Avatar for shroomiin

hello everyone. i have been attempting to make an if statement that calculates overtime hours for quite some time now and i cant seem to get it to work correctly. Is it possible to make this statement with 1 line? or am i missing somthing? this is what i thought …

Member Avatar for cmackbrown
0
972
Member Avatar for harshi22

I need code in java for creating b+ tree whose nodes contain file for implementing insertion,deletion and searching. please help me out

Member Avatar for rubberman
0
136
Member Avatar for Ankit_8

I want to make a pothole detection app for my final year degree project. Can i get the code from somewhere??

Member Avatar for rubberman
0
284
Member Avatar for sk8ergirl

I have two jPanel one contain three textField and the 2nd JPanel have doThis when I click the doButton the data grom the textField should be displaied I tired this but it didn't worked I made the three textField public static and then from the 2nd JPanle I did this …

Member Avatar for sk8ergirl
0
137
Member Avatar for pekemp23

I am trying to havea program give me the averages from the tests. If the number is over 100 it is to give me an excpetion code this is what i have thus far... having issues on line 36-38 and 40. any help would greatly appreciated. import java.lang.IllegalArgumentException; //declare and …

Member Avatar for stultuske
0
418
Member Avatar for Tomi1988

Hi! I'd like to create a simple table game by Swing. I have a JFrame and a JPanel variable. I want to add JButtons to this JPanel, but I'd like to create an own class. I made a class that extends JButton (inheritence): public class GameField extends JButton {...} So …

Member Avatar for JamesCherrill
0
168
Member Avatar for shiv_0013

I am writing a java webservice which has two functions. One has to receive and save two string data and the other has to provide these two data.Suggest me what is the best to achieve this without using a db. I tried the below solution: I had a excel sheet …

0
125

The End.