32,199 Topics

Member Avatar for
Member Avatar for AlPhA

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 …

Member Avatar for vouxiong
0
586
Member Avatar for somjit{}

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... …

Member Avatar for somjit{}
0
251
Member Avatar for n2408

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 …

Member Avatar for Taywin
0
113
Member Avatar for amullen98

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 …

Member Avatar for Taywin
0
177
Member Avatar for kmachstang

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 = …

Member Avatar for kmachstang
0
110
Member Avatar for kimbokasteniv

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 …

Member Avatar for JamesCherrill
0
7K
Member Avatar for psy.blast

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 …

Member Avatar for JamesCherrill
0
208
Member Avatar for Priyanka786
Member Avatar for lloydsbackyard

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"); }

Member Avatar for lloydsbackyard
0
133
Member Avatar for UNDER-18 FG

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 …

Member Avatar for Lucaci Andrew
0
307
Member Avatar for kris.parekh.1

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 …

Member Avatar for stultuske
0
199
Member Avatar for sapure

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 …

Member Avatar for sapure
0
121
Member Avatar for Viped

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 …

Member Avatar for Viped
0
248
Member Avatar for scarletfire

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) …

Member Avatar for scarletfire
0
781
Member Avatar for foofdude

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 …

Member Avatar for JamesCherrill
0
443
Member Avatar for Dio1080

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 …

Member Avatar for JamesCherrill
0
181
Member Avatar for rami sohaill

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 …

Member Avatar for JamesCherrill
0
337
Member Avatar for Aditya.gtbit

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 …

Member Avatar for Taywin
0
338
Member Avatar for primeru333

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 …

Member Avatar for JamesCherrill
0
554
Member Avatar for Yoink

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. …

Member Avatar for Yoink
0
516
Member Avatar for Kronolynx

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 …

Member Avatar for JamesCherrill
0
258
Member Avatar for King1010

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 …

Member Avatar for King1010
0
298
Member Avatar for jamesmadison43

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 …

Member Avatar for jalpesh_007
0
271
Member Avatar for RozenKristal

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 …

Member Avatar for jalpesh_007
0
224
Member Avatar for engrjawad
Member Avatar for jalpesh_007
0
193
Member Avatar for ctclements

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 …

Member Avatar for jalpesh_007
0
119
Member Avatar for Hakoo

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 …

Member Avatar for Hakoo
0
288
Member Avatar for mcmanuel20

/* * 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, …

Member Avatar for Taywin
0
168
Member Avatar for greg2186

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 …

Member Avatar for greg2186
0
262
Member Avatar for ncis_sg1

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 …

Member Avatar for ncis_sg1
0
4K

The End.