32,199 Topics
| |
I am looking into developing a few websites, and I am debating whether to use asp.net or php. I am very proficient in asp; however, i have not used it in years, thus i don't remember the syntax very well. I do not want to use asp because it is … | |
i dont understand the reason why im geting the errors i am with this code... errors with arraylists, also a few other errors like symbol not found etc s.. i corrected the ones i could, but the ones (5 of them in total )im still geting, i dont understand them... … | |
Hey all! I am having trouble debugging my program, and after exhausting all of my options i decided to come to you guys. The assignment requires us to create the methods for the tes tin junit. I have most of it working, but have a few problems, mainly with my … | |
Hello everyone!! I really need some help! I am trying in implement a tic tac toe game made of different classes in which the board can be expandable. I have most of it figured it out but after I ask the first player for their move it ends the game … | |
Hello. I have the following function written in pseudo code. I think the pseudo code is more C than java and my C has about 10 years of rust on it. Can anyone help me decipher it? UINT function(BYTE* header) { UINT length; header = header + 1; length = … | |
So this is my first attempt at a GUI in swing, and so far things seem to have been going somewhat smoothly. However I am un-able to update a JList named objectsL. I imagine this is because I have already added it to a panel? So, now Im am very … | |
Hello DaniwWeb Members :) I'm a fairly new programmer and I'm kinda embarressed to ask this question considering that the answer is probably blatently obvious. So forgive my ignorance :) But here goes, I have a String called "Ctype", It is relevant to my combobox which I created. My combobox … | |
How to get values from database in a popup window? | |
try{ name= JOptionPane.showInputDialog("Enter Employee Name: "); } <br /> catch (Exception e){ //wHAT IS THE CODE HERE if THE INPUT IS NUMERIC JOptionPane.showInputDialog("Invalid Input"); } | |
Hi, I had to make a java coding that will determine if a number is a prime number or not. Here's the coding I did: import.java.util.Scanner; public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n … | |
i am new to java and i am getting"cannot find symbol-variable data"please help here is my code import java.io.*; class categories { void options()throws IOException { int a; System.out.println("The categories available are"); System.out.println("1.Fantasy"); System.out.println("2.Fiction"); System.out.println("3.Inspirational"); System.out.println("4.Mystery"); System.out.println("5.Comics"); System.out.println( ); System.out.println("enter your choice"); data=stdin.readLine(); a=Integer.parseInt(data); switch(a) { case 1:System.out.println("1.The vampie academy … | |
Please, I'd like to know the difference and the special uses for each one. If I want to use it for text file compression whose algorithm is as follows, which one is more efficient? Encoding Algorithm 1. Initialize the dictionary to contain all blocks of length one (D={a,b}). 2. Search … | |
Hi, I've been studying OPENGL and 3D programming. I've made kind of 3D engine with basic movement, no collision detection yet. Now theres something really wrong in my code. When I go near rendered QL_QUADS framerate drops to 11-12 and allover my framerate is too low. Any suggestions? Core.java package … | |
I am trying to pick up cryptography on my own and no problem with caesar and vigenere cipher but here I am trying to understand or to start this bit on the one-time pad. Could anyone advise or give me a head start on this? Write a program (preferably Java) … | |
Okay, so I'm working on a battleship game, and I added these two tables which are throwing all sorts of errors, like: * Illegal Start of Expression, * Not a Statement, * ';' expected, * ']' expected, * <identifier> expected. I have no idea why... Help, please? import java.awt.*; import … | |
Hello, I need help making a table based off my tax code I made, the tax code was a little, but I need help with the table part also. The table should look like this: Income Single Married Joint Married Separate Head of house 50000 9846 7296 10398 8506 50050 … | |
Hi everyone .. so i'm creating this project for college it's a system for airplane reservation i'm using multi dimensional array of objects i have two classes ticket and passenger .. this is the main /** * Name = Rami sohail Mohammed Jamous * ID = 1324057 * Java 203 … | |
Hi I am trying to make an java application to compress file and folders in .zip format.. i want to add additional functionality of adding password to a zip file,for this i want to use aes-256 algorithm but i am stuck with this,i can't figure it out. if i apply … | |
I am using NetBeans to re-create monopoly board game. I attached my board file into the attachments. I have already gotten the board, dice, players drawn to the screen. My question is how do I get the values from the dice roll so that my images can be moved around … | |
Hi, I'm writing a simple program that runs a vending machine. I thought I had everything working fine untill I messed around with the money input some more. In my program I obviously compare money values and check to make sure the values match up exactly to buy an item. … | |
hi. i got some problems with the dot and the C in th calculator i'm making. 1. when i press the C button it clears the screen but the next number i enter is also ignored even though it appears on the screen. 2. the dot is not working as … | |
Inline Code Example Here package mariabakeshop; import java.text.Numb * @param message * the prompt string to display * @return a String input value */ public static String prompt(String message) { String value = ""; Scanner in = new Scanner(System.in); System.out.print(message); value = in.nextLine(); return value; } /** * Convert a … | |
The goal of the program is to make a sparse matrix using circularly linked lists. basically its a matix what only has values at the locations entered, and the rest of the lactions are not defined. the question i have is the logic for the code. how would i go … | |
import java.util.*; public class List { public static INode head; public List() { head = new INode(8); } public static void main (String[] args) { INode a = new INode(8); int data = a.getValue(); System.out.println(data); System.out.println(head.getValue()); } } And my Node class: public class INode { private int value; private … | |
| |
public class StringSet { public static void main(String[] args){ StringSet ss1 = new StringSet(); ss1.insert("the"); System.out.println(ss1); } /** * Creates an empty StringSet object. */ private String[] data; public StringSet () { data = new String[0]; } /** * If e is null, throws an IllegalArgumentException. * Else, if there … | |
Hello, I am facing this difficulty here : First I'll give code public class Game extends JFrame { private JPanel contentPane; //private JPanel settingPane; protected JLabel lblPlayerName2; // I am using this one for my testing JLabel[] lbls = new JLabel[9]; private final ButtonGroup buttonGroup = new ButtonGroup(); public static … | |
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package primenumber; /** * * @author mcmanuel */ public class PrimeNumber { /** * @param args the command line arguments */ public static void main(String[] args) { int num, a, b, … | |
I have a homework question that I'm a little thrown off by. Mostly because we haven't messed with strings much in class. Any help would be greatly appreciated. Using the UML class diagram as a reference, complete the Student class declaration. (fill in the blanks) class Person { public String … | |
I am trying to understand how exactly you are meant to prompt a user for two numbers and then list a menu for them to choose the course of action they want to do with those numbers however I am quite new to java and do not understand the concept … |
The End.