36,051 Topics

Member Avatar for
Member Avatar for whimsical1987

I am trying to implement a protocol that includes cryptography. What I am supposed to do is encrypt a combination of two public keys and a message. Although I have the message in String format I don’t have the public keys in string format. I am making use of getpublic …

0
69
Member Avatar for bi0201
Member Avatar for cdominguez13

I've been asked to create a Course class with the following attributes : Course code string course name string roster student[] count int I know how to set first 2 and the last one, but I am having problems with the aaray one. This is what i've done so far: …

Member Avatar for kvass
0
95
Member Avatar for luttinj

I am making a basic quiz show in Java and I have successfully made the first question. Now when I went ahead and made my second question I encountered this problem. When I run the program there are no errors with it, but it will not let me input a …

Member Avatar for moutanna
0
186
Member Avatar for cdominguez13

I have this code so far: //Carolina Dominguez //Assignment 7 public class Student { private String fname; private String lname; private String studentId; private double gpa; public Student(String studentFname,String studentLname,String stuId,double studentGpa) { fname = studentFname; lname = studentLname; studentId = stuId; gpa = studentGpa; } public double getGpa() { …

Member Avatar for moutanna
0
134
Member Avatar for ahmed.sofi

excuse me, im doing atomix game and there is something that i can do as an extra thing which is while the atom moves i see it moving no just disappearing and showing in the next position? thx :)

Member Avatar for Ezzaral
0
110
Member Avatar for cdominguez13

Hi, I was asked to write a class that represents a Student The Student class has the following attributes: first name String // May be 2 words: Mary Ann last name String // May be 2 words: Smith Jones student ID number String gpa double // Range 0.0 to 4.0 …

Member Avatar for cdominguez13
0
137
Member Avatar for ceyesuma

Hello Could someone tell me what derby requiers to make this conn? [code] public boolean createDatabase() throws FileNotFoundException, IOException { boolean createdDb = false; Connection conn = null; String dbURL = getDbURL(); String user = ModelUtils.getXMLResource("user"); String password = ModelUtils.getXMLResource("password"); System.out.println("in CreateDatabase:try:dbURL FROM XML properties: " + dbURL); System.out.println("in CreateDatabase:try:dbURL …

Member Avatar for ceyesuma
0
125
Member Avatar for rana555

i want program to find the transpose of the graph G, where the input and the output of the program are represented as adjacency list structure. pleeeeeeeeeeeeeeees help me

Member Avatar for Ezzaral
-1
241
Member Avatar for username2000

Write a program to find the transpose of the graph G, where the input and the output of the program are represented as adjacency list structure.

Member Avatar for Ezzaral
0
59
Member Avatar for P00dle

I've written the code already, and it compiles, but gets the following runtime exception: [COLOR="Red"]java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:595) at threads.ThreadStarter.run(ThreadStarter.java:52) at java.lang.Thread.run(Thread.java:619)[/COLOR] I've higlighted the line that throws the exception. I have no idea what's wrong, my knowledge in threads is sadly lacking. If anyone could help me out it would …

Member Avatar for moutanna
0
174
Member Avatar for luttinj

Hey, I am trying to use this program, it is supposed to ask one multiple choice question of the user and get the response. For some reason it will not work for me. I am using Ready to Program by HoltSoft. Please help me. [CODE]import java.awt.*; import java.applet.*; import java.io.*; …

Member Avatar for luttinj
0
120
Member Avatar for kdott

ok, so i have an int[][] that i need to be printed out into a file. it needs to be printed line by line with each number seperated by a comma. how does this look? im not getting any output... [CODE]import java.io.*; import java.util.*; public class TestingII { public static …

Member Avatar for javaAddict
0
5K
Member Avatar for 3ak

I tried making a Java desktop application to learn Java. So far, a mouse click event draws rectangles in the document and stores the rectangle in an array in ProjectApp.java. This isn't the problem but my rectangles disappear when I minimize and maximize the window. I normally use VS C++ …

Member Avatar for 3ak
0
179
Member Avatar for bigBob888

Hello all, I am new to java and programming. You will be able to tell that by my post. I have a program that needs to take info from my textField and store it in an 2d array. Then do calculations and output the calculated data into a textArea. So …

Member Avatar for Ezzaral
0
126
Member Avatar for hina hasan

plxxxxxxxxxxx help me thts ma java assg for mean median and mode i have calculated some part of it for group data can any 1 help me to find out the rest offfffffff [code]String ans; int total=0,small=0,large=0; int numEntries=0; float range=0.0f; float wid = 0; // user enters number String …

Member Avatar for KirkPatrick
-5
399
Member Avatar for the_preface

I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, …

Member Avatar for the_preface
0
150
Member Avatar for gymangel812

I'm having a problem changing an abstract class to an interface. I changed the abstract class (Bounceable) to an interface but I'm not sure what I need to do with the concrete classes (Tennisball, Basketball) that implement the interface. The change to an interface is also affecting the output test …

Member Avatar for Ezzaral
0
185
Member Avatar for helpmepassclass

I'm doing a web application for one of my projects in my computer class. I have been using Apache 6.0 as my server and SQL for my database. I'm am having trouble with getting my create form which is in the view form to save with is controlled by my …

Member Avatar for ddempsey96
0
225
Member Avatar for patel_amul

Hi there? Can anyone plz tell me that how to connect html forms/pages to m.soft acess database?

Member Avatar for peter_budo
0
90
Member Avatar for reyadr

Hello, can anyone help me please..I have four tables in mysql as follows: Employye1,Employee2,Employee3,Employee4. I need to retrieve records from any table i choose and display the record on a JSP page. I just need to know how to pass the table name as parameter? for e.g Select Emp_name from …

Member Avatar for masijade
0
46
Member Avatar for ghostrida45

I created a JApplet game for a class project. My game is basically a dodge-ball game. I have 5 dodgeballs bouncing around the screen with a player starting in the middle. The object is to mouse drag the player dodging all of the balls bouncing. The problem I am having …

Member Avatar for ghostrida45
0
117
Member Avatar for lmb004

Yeah, this is homework, but I have spent many hours and have asked many other students at my school to help and so far we haven't solved my problem. I am trying to write a program to figure out the first fit, best fit, and worst fit. I have randomly …

Member Avatar for kvprajapati
1
3K
Member Avatar for trufriend.916
Member Avatar for jwenting
0
28
Member Avatar for sau_shilpa

Hi, When I try to connect a jsp page with MS Access database, it gives an error "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified " What does that means?

Member Avatar for patel_amul
0
241
Member Avatar for ebergine

[QUOTE=peter_budo;695619]Not enough that you opened thread that is 4 years old, you did not bother to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rules[/URL] (hijacking thread, no emails in the post) you also did not even consider to read sticky thread "[URL="http://www.daniweb.com/forums/announcement9-2.html"]We only give homework help to those who show effort[/URL]". On top of all …

Member Avatar for peter_budo
0
101
Member Avatar for soUPERMan

Hey, i dont get any compile errors on this code but when i run it i dont get an evaluated value, what have i missed??? [CODE] import java.util.Scanner; import java.util.StringTokenizer; import java.lang.Math; public class main { static Stack<String> stack = new NodeStack<String>(); static final String operators = "+-/*^"; static Scanner …

Member Avatar for soUPERMan
0
110
Member Avatar for happygeek

Let us know which language you are coding in and we can move this to the correct forum.

0
52
Member Avatar for P00dle

Ok, so I wrote a very simple programme, just to practice multithreading. I know it can be coded better, but I'm still learning about this, so please be lenient. This is my code so far: [CODE]package threads; // Create a thread import java.io.File; class threads implements Runnable { // This …

Member Avatar for P00dle
0
141
Member Avatar for StaticX

Hi, Like the title says I am having a little difficulty connecting a JSP page to database.Here is my code containing the setDataSource, I am pretty sure that this is whats causing the problem. [CODE] <%@ taglib prefix="sql" uri="htpp:/java.sn.com/jsp/jstl/sql" %> <sql:setDataSource var = "labdb" scope = "session" driver = "sun.jdbc.odbc.JdbcOdbcDriver" …

Member Avatar for peter_budo
0
195
Member Avatar for sharathk60

i am calling applet jar file like this [code] out.println("<APPLET code = com.Sample.class " + "codebase = /WebContent/WEB-INF/" + "archive = SamplePassword_signed.jar " + "WIDTH = 200" + "HEIGHT = 350>" + "</APPLET>");[/code] but it gives me a error that class path : class com.Sample.class not found. i have stored …

Member Avatar for sharathk60
0
273
Member Avatar for electricrain

hello every one i am haveing problem in code i.e whenever i try to write in file it overwrite tthe previous one.I am using this code [code] File f=new File("c:\\paul.txt"); //f.createNewFile(); BufferedWriter br = new BufferedWriter(new FileWriter(f)); BufferedReader br1=new BufferedReader (new InputStreamReader(System.in)); FileReader fr=new FileReader(f); // FileWriter frt=new FileWriter(f); // …

Member Avatar for javaAddict
0
139
Member Avatar for pateldeep454

[B]Card.java[/B] [CODE] package poker; public class Card { int suit; int rank; public Card () { suit = 0; rank = 0; } public Card (int s, int r) { suit = s; rank = r; } public int getSuit () { return suit; } public int getRank () { …

Member Avatar for javaAddict
0
214
Member Avatar for hcl1234

Hi , how do i write a program on touch screen zoom , sroll left to right and right to left , how to open keyboard(virtual) when we focus on textfield or textarea.

0
22
Member Avatar for cool_whip579

@SuppressWarnings("unchecked") class MyBooks implements Comparable{ static final CompareLastName c1 = new CompareLastName(); static final CompareFirstName c2 = new CompareFirstName(); static final CompareTitle c3 = new CompareTitle(); static final ComparePrice c4 = new ComparePrice(); static final CompareISBN c5 = new CompareISBN(); static final CompareDate c6 = new CompareDate(); private String lastname, …

Member Avatar for masijade
0
132
Member Avatar for electricrain

hello i am trying to write in file and when ever i do this previous lines overwrites in file .i am trying this code File f=new File("c:\\paul.txt"); //f.createNewFile(); BufferedWriter br = new BufferedWriter(new FileWriter(f)); BufferedReader br1=new BufferedReader (new InputStreamReader(System.in)); FileReader fr=new FileReader(f); // FileWriter frt=new FileWriter(f); // BufferedReader brz=new BufferedReader(fr); …

Member Avatar for masijade
0
73
Member Avatar for geteducated

Posted below is currently my main class that works for a java blackjack game, i do have 3 other classes for the full game to work but this class is where my problem is. my problem is in the west border i have so much being written to the GUI …

Member Avatar for masijade
0
1K
Member Avatar for asadfx

I have deployed a simple web service using Apache Tomcat 6.0 and Axis 1.4 in Windows XP. Now the server is very simple: [CODE] import java.io.*; import java.util.*; /* HelloWorld.java This is our web service */ public class HelloWorld { public String getHelloWorld(String id) { String retName=""; try { File …

0
74
Member Avatar for DrApe1

I'm a little new to programming and for my class I've been asked to do a recursive program where you input a directory and it will find all the files in that directory and any subdirectories in that directory, etc etc until there aren't any more subdirectories. Quite honestly, I'm …

Member Avatar for DrApe1
0
118
Member Avatar for amitaf_s

I've been trying to figure out the code for this problem for a long time and I'm stumped. The problem is: The library for which we design this system has only books and magazines that are available for library members to borrow from its circulation. Users of the library are …

Member Avatar for jwenting
0
105
Member Avatar for black_berry

Hello, I am trying to do a first fit allocation in java my problem is how do i keep track of which memory block i have cheked and if there are no suitable blocks put the job in a waiting queue. Thanks for all help [CODE] import java.util.*; import java.util.Scanner; …

Member Avatar for ACW1989
0
725
Member Avatar for sinister747

Hi All, I am just wondering how i would check if the below checkbox was clicked or not? [CODE] private JCheckBox postage = new JCheckBox("Postal Delivery?");[/CODE] When the form is submitted i need to check the box and get a boolean saying true or false based on clicked or not …

Member Avatar for sinister747
0
90
Member Avatar for charlieruns

I need to get my jlist to simply display a one word subject. When I do it the way below, it obviously prints: "subject: blah location: blah date: blah path: blah." How can I get to set an JList to simply display the string title of the picture rather than …

Member Avatar for charlieruns
0
71
Member Avatar for localp

I need to know a way to read a XML file from java. for example if the XML file is >> [code] <PHONEBOOK> <PERSON> <NAME>Joe Wang</NAME> <EMAIL>joe@ffff.com</EMAIL> <TELEPHONE>202-999-9999</TELEPHONE> </PERSON> </PHONEBOOK> [/code] I need to get the persons name, as in when i specify "NAME" the name 'joe wang' should display. …

Member Avatar for peter_budo
0
128
Member Avatar for Stefano Mtangoo

Hi all, I know many here have been working on big project and can help me on this. We will be having a project to do and we are more than 3 people. We will be working at different times and places(We are not employed developers per se Just hobbyists). …

Member Avatar for Stefano Mtangoo
1
163
Member Avatar for neo_philiac

Hi, I am trying to make thumbnail viewer and having problem putting the thumbnail in the proper place. All I am trying to do is this: [CODE] iconPanel.add(iconBar, BorderLayout.NORTH); for (int x = 0; x < 4; x++) { iconBar.add(emptyThumbnail,BorderLayout.CENTER); repaint(); validate(); } [/CODE] Ant then whenever I scroll, [CODE]for …

Member Avatar for neo_philiac
0
73
Member Avatar for anjaliua

hii the following is my xml file.. [CODE][/CODE] <?xml version="1.0" encoding="UTF-8" ?> - <categories> - <medicines> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\2.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\3_001.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\3.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\4.html</url> </medicines> - <treatment> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114723\anemia-treatment-with-home-remedies.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114723\ayurveda-encyclopedia-w.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\alternative-treatments.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\aromatherapy.html</url> <url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\free-home-remedy.html</url> </treatment> </categories> i want someone to help me to tell how to add a new url to the already existing xml file...new …

Member Avatar for xml_looser
0
169
Member Avatar for the_preface

I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, …

Member Avatar for moutanna
0
157
Member Avatar for neelamudr

Hi, I made a java application to distribute on Mac osx. I created folder .app structure according to mac application. The application is being successfully launched by double click on Myapplication.app on Mac Osx which contains Java5. Its not launching the application on Mac with Java6. I searched for the …

0
32
Member Avatar for ku95

I have this program where I need to get the suggested next move (a column index) and also call the 'go' method using this column as the parameter. This is what I have come up with so far. [B]Connect4Model[/B] [CODE]public class Connect4Model { Connect4Column [] columns; // an array of …

0
41

The End.