32,204 Topics

Member Avatar for
Member Avatar for khunmato

Hello! I have constucted a code for the card game 21. The code uses inputDialogs to "talk" the the player. I thought my shool assigment was over by doing just that...I was wrong, our teacher dumped a new bomb on us. With these kind words; [I]Develop task 5 (Twenty-one card …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Guest51

I am a student working on an inventory app. Until this current assignment I felt I half way knew what I was doing. What is required is the following: [B]~Modify the program to handle multiple items:[/B] should work with this code added - it worked on another program [CODE]//Prompt user …

Member Avatar for JamesCherrill
0
203
Member Avatar for john butler

here is one program which has 1 abstract class without abstract method. its also works fine. Then what the use of abstract class, any how it does not allow to create objects, we can use this with concrete class to implement method defined in abstract class which we have to …

Member Avatar for musthafa.aj
0
109
Member Avatar for arete

I'm trying Euler problem 3 on [url]http://projecteuler.net/[/url] for fun. I think I have a program that works (with very small numbers), but it takes too long. Can anyone give me some hints to improve speed? [CODE] /** * The prime factors of 13195 are 5, 7, 13 and 29. * …

Member Avatar for Taywin
0
151
Member Avatar for RaniThomas

Hi All, Can i Compile a java program without a single line in a main method. If s, how it works. Please explain. Help Me.

Member Avatar for Taywin
0
157
Member Avatar for gampalu

Hi, I am trying to load an image into an applet, however unsuccessfully. What's wrong here? [CODE]package sess31; // Import the AWT graphics package import java.awt.*; import java.applet.*; public class myownapplet extends Applet { Image image; public void init() { // Load image //image = getImage(getDocumentBase(), "show14.gif"); } public void …

Member Avatar for Alimuzzaman
0
689
Member Avatar for chinee

i created a flash screen but all i could get is a blue screen not even the picture is comin up and not even the menu is coming up.and plus there are errors from place order to change order with the variable and the equal sign. so can any one …

Member Avatar for NormR1
0
246
Member Avatar for Derrin

Hello everyone and thanks in advance for your help. I am having trouble with a piece of java code for class and have asked the insructor for help and he has only helped in confusing me further. The assignment was due Sunday and I have been in the hospital since …

Member Avatar for JamesCherrill
0
176
Member Avatar for moddie

Hi, I'm trying to create an applet that allows users to login with their usernames/passwords. Users will also be allowed to register a new account. Question is, how do i create this? Where do i store the username and passwords? Thanks in advance

Member Avatar for NormR1
0
139
Member Avatar for Agent Cosmic

What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = …

Member Avatar for JamesCherrill
0
97
Member Avatar for RaniThomas

please explain that how JVM works when we trying to compile a java class? Help me in understanding the concept?

Member Avatar for RaniThomas
0
89
Member Avatar for feoperro

Hi, Yesterday I downloaded and extracted ActiveMQ and ran the consumer/producer example and it worked. Today I did the exact same thing but I get the following feedback: [CODE] C:\Java\apache-activemq-5.3.2\example>ant consumer Buildfile: C:\Java\apache-activemq-5.3.2\example\build.xml init: compile: [javac] C:\Java\apache-activemq-5.3.2\example\build.xml:146: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable …

Member Avatar for feoperro
0
2K
Member Avatar for arete

I'm new to java and am working my way through a textbook. I feel like I'm starting to get the hang of it and so I wanted to learn of opportunities to improve myself. Are there any open-source projects or other ways for me to try my hand at something …

Member Avatar for aditya027
0
82
Member Avatar for Jeun

Hi , i have a a sequence of strings which goes [strings] [some numbers] [some more strings ] is there any way for me to use the pattern and matcher classes to extract "[some more strings] " from the sequence , thanks

Member Avatar for masijade
0
64
Member Avatar for seanvitalaim

Hello everyone. I am very embarrassed to post my code cause some might think it is horrible since my experience level is low. But I am having a problem. First I want to add that i have tried placing [CODE]import java.lang.String[/CODE] in the code but no go. Thanks in advance …

Member Avatar for NP-complete
0
147
Member Avatar for yasin.mr

hey guys how do i change the value in a JLabel when a value in the JComboBox changes, example when i change a combo box value from airplanes to cars, the value in jlabel changes from $100k to $10k. thanks.

Member Avatar for JamesCherrill
0
96
Member Avatar for intes77

hello i would like to know how can i use these isString,isInt,isDouble functions. i really dont have a clue if these functions do exist. but i want to create a program that lets me input anything. and it would identify if it is a string an int or a double. …

Member Avatar for JamesCherrill
0
168
Member Avatar for seanvitalaim

Is there a way to create a certain number of double variables based on user input. For example a user has three cars so when asked by the software how many vehicles he has and he enters the number 3 my software will create 3 double variables named car01, car02, …

Member Avatar for JamesCherrill
0
219
Member Avatar for gunjannigam

I want to Run a ftp server on my machine. My FTP Client will send the data to FTP Server (not a file but byte data). The FTP Server should listen to the data, store it in a file on the local hard disk. How can I wrote a code …

Member Avatar for NormR1
0
58
Member Avatar for joe_ojah

Hi everyone, I have built an application that runs on a standalone computer. however i haven't managed to package it in a way that can be distributed since i have to keep on creating databases in each computer that i have to run it on. is there a way i …

Member Avatar for NormR1
0
91
Member Avatar for Sunshineserene

I have a text file in this format: AUGC U[B]1212[/B] A[B]2121[/B] G[B]3434[/B] C[B]4343[/B] I need to extract the number that I need depending on which variables (letters) I'm comparing. For example, I need the value for A and U, so the value I need to look up for or extract …

Member Avatar for NormR1
0
234
Member Avatar for tonejaquim

hi, im using webdav, httpclient api, to send email to exchange 2007 with the following code i send a message successfully: String strTempRelativeURI="https://webmail/exchange/user@email.com/Drafts/"; [code] PutMethod pm = new PutMethod ("https://webmail/exchange/user@email.com/Drafts/test5.eml/"); pm.setRequestBody(body); client.executeMethod(pm); move(strTempRelativeURI + "test5.EML", strSubRelativeURI, null); public static void move(String urlOrigem, String urlDest, HttpConnection conn) throws Exception { MoveMethod …

0
98
Member Avatar for jemz

hello can you help me how can i count the element in array heres my code [CODE] int [] num = new int [10]; int i; System.out.print("Please input 10 numbers"); for(i=1;i<=10;i++) { num[i]= console.nextInt(); System.out.print(" " + num[i]); } System.out.print("\n"); System.out.print("The elements are"); for(i=1;i<=10;i++) { System.out.print("The elements are: " + …

Member Avatar for jemz
0
5K
Member Avatar for jemz

hello can you help me please what is the string method to be use when searching a keyword that can be found in first, middle, end of the word... example "CH" this will search all names having this "CH"...can you help me what is the string method to use this...hoping …

Member Avatar for jemz
0
87
Member Avatar for anthonydonx
Member Avatar for jt86442
0
66
Member Avatar for Rajnesh

start Server first start Client by passing the ipaddress of the server eg; java Client 10.0.1.15 if an error pops up change the port in both Client and Server programs

Member Avatar for jt86442
0
3K
Member Avatar for momoryoma4488

Hi... i hope there's someone who can help us think about the concept that we may use in order to create a website using java language... we are not allowed to use other language... and honestly we are not that good in that language... Hope that you can help or …

Member Avatar for jt86442
-1
59
Member Avatar for Rajnesh

I was creating a chat application in Java Swing/Socket Programming. The same when I created in non GUI app. it worked [url]http://www.daniweb.com/code/snippet448.html [/url]. But in GUI, they can't connect now. I have tried it thru many ways but still m getting errors for connection. Can anyone can help me...... /********************* …

Member Avatar for anthonydonx
0
254
Member Avatar for fsl4faisal

abstract class A { abstract void callme(); void callmetoo() { System.out.println("this is concrete method"); } } class B extends A { void callme() { System.out.println("implementation of callme"); } } public class abstractdemo { public static void main(String []args) { B b=new B(); b.callme(); b.callmetoo(); } }

Member Avatar for NP-complete
0
191
Member Avatar for echellwig

Hi, I am trying to interface between Java and Python in a program called Eclipse. Specifically, I need to call a program I wrote in python while in java. Any insight on how to do this would be helpful. Thanks! Elise

Member Avatar for Stefano Mtangoo
0
98

The End.