36,051 Topics

Member Avatar for
Member Avatar for theon

This is urgent! I need an I/O code by today but I have no idea how to do it. Could anyone help a poor guy like me and maybe have some Java practice by writing a short code using the following information? I'll learn how it works later! Just help …

Member Avatar for server_crash
1
188
Member Avatar for jonoj

Hi everyone I am new to java and am writing a program thats meant to have the following terminal output... Enter a number: 29 29 is a prime number. Enter a number: -7 Please enter a positive integer. Enter a number: 45 45 is not a prime number. Enter a …

Member Avatar for jonoj
0
164
Member Avatar for prakash

hi, can anybody help me , i need the following program to be developed in J2ME. writting screen saver program using J2ME. so if anybody know about this , pls help me regards, prakash

Member Avatar for prakash
0
130
Member Avatar for salmanrauf

Hi this is Salman.I am having a problem is linear search.The program doesnt compile giving the error "No method found matching linsearch".My code is class search{ public static void main(String args[]){ int A[]=new int[1000]; for(int i=0;i<A.length;i++){ A[i]=(int) (1000*Math.random() +1); System.out.println(linSearch(799, A[i])); } } } class searching{ public static int linSearch …

Member Avatar for freesoft_2000
0
118
Member Avatar for BrownSuga

Ok i have gotten stuck on this program and I need help This program is supposed to calculate the balance of a checking account after the user has entered the type of action (withdrawl, deposit) they would like to do. My output should be a report that prints the beginning …

Member Avatar for tigerxx
0
143
Member Avatar for SureStoreX

My program for school requires me to output information as such... Name: Steve Address: 123 Main Phone# 555-5555 Social SecuritY# 555-555-555 Current Hours: 0.0 Name: Mary Address: 13 Manor Phone# 555-5555 Social SecuritY# 555-555-555 Paid:846.15 Name: Gwen Address: 1 Birch Phone# 555-5555 Social SecuritY# 555-555-555 Current Hours: 2.0 Paid: 17.1 …

Member Avatar for alc6379
0
115
Member Avatar for Ghost

I need urgent help with the following problem: Suppose there is a class AirConditioner . The class supports the following behaviors : turning the air conditioner on and off. The following methods are provided for these behaviors : turnOn and turnOff . Both methods accept no arguments and return no value . There …

Member Avatar for Narue
0
220
Member Avatar for Ghost

Hi! I have some questions on Java: Write a literal representing the largestcharacter value . I think the aswer is: Del 1 more question: You are given a class named Clock that has three instance variables : One of type int called hours , another of type boolean called isTicking , and the …

0
64
Member Avatar for javaLearner

G'day.. Am new to this whole object oriented stuff. But keen to learn. Am trying to compile this class but keep getting the following error when i declare anything that 'implements'. i remove the declarations and all subsequent code references and she compiles.. any ideas?? *********************START_OF_ERROR********************** ChatClientApplication.java:6: ChatClientApplication is not …

Member Avatar for javaLearner
0
247
Member Avatar for johnroach1985

Hi just started this new jsp course stuck in this so if you guys can please help would be very happy.The problem is this i am trying to make a jsp that asks for a username and a password and the thing is i am trying to put these datas …

0
94
Member Avatar for Ghost

I don't understand constructors. Can anybod help? The question is: You are given

Member Avatar for Ghost
0
88
Member Avatar for dianathomas

Hi there. My name is Diana Thomas. I am a junior Java Developer who needs a bit of help. I am trying to automatically send e-mails from my Java servlets. I am using JDeveloper with Oracle 10g. I have got the mail.jar and the activation.jar from the JavaMail and JavaBeans …

Member Avatar for dianathomas
0
175
Member Avatar for Hjcooke

Hi, im using a code snippet found on this website, ylinderVolume A simplistic program to compute the volume of a cylinder when its radius and length are input via MyInput.class code snippet donated to daniweb by: cscgal ( all code snippets bycscgal ) views: 52 syntax language: java122 package …

Member Avatar for Hjcooke
0
265
Member Avatar for freesoft_2000

Hi everyone, I am doing a simple program that the user is able to select whatever folders(not files) in the drive(through the argument of the folderpaste function) and is able to paste the folders (with their contents) in the the path "C:" but i think my main problem is that …

Member Avatar for cosi
0
170
Member Avatar for KCC1982

Hi, The following code compiles and runs fine from the hard drive but does not compile fine from a floppy disk. It gives me a cannot resolve symbol error for the DataSet dataSet = new DataSet(); line. Any ideas? The program is supposed to except user input for 4 integers …

Member Avatar for cosi
0
200
Member Avatar for Joel914
Member Avatar for cosi
0
174
Member Avatar for NJR

hi, I am trying to create a 2 dimmensional array that reads data from a text file using a buffer reader and tokenizer to separate the information in the text file. As far as using the buffer reader to read from text file it seems to work but when i …

Member Avatar for cosi
0
163
Member Avatar for OurNation

Is it possible to make a timer that counts down to a cerrtin day and time also is it possible to make it display some where but not in the way

Member Avatar for cosi
0
184
Member Avatar for raneka17

i'm creating a guestbook in java wherein it gets inputs(name,message) from a user then it will store this as an object. it basically works like a guestbook in webpages only that it will have a delete option. how can i do this? can anyone give me an idea please.

Member Avatar for raneka17
0
171
Member Avatar for joebanks

im trying to call a showInfo() method from a superclass MediaTypes, the subclass is CD and the driver class is Assn2. the problem im having is that for all the values i inherit from the MediaTypes class im getting only null values and for the gregorian date im getting a …

0
67
Member Avatar for server_crash

I made a program that simulates the roll of a six sided dice. I had my program return a random number between 1 and 6. The weird thing is I get 4 like 6 out of 10 times each time I run the program. So is the random number genarator …

Member Avatar for felgall
0
138
Member Avatar for BrownSuga

I am writing a program that calculates the bill when buying eggs by the dozen. I have for the most part figured out most of the code but, I am getting an error message that is saying "variable price might not have been initialized. Here is the code please help …

Member Avatar for BrownSuga
0
112
Member Avatar for grifflyn

I have just embarked on a Java programming course and have been given a task to work out the volume of a cylinder in cubic inches with a given radius and height. and then to convert it from cubic inches to to cubic Cm's which i have done fine. My …

Member Avatar for server_crash
0
243
Member Avatar for Sheryl

Hi People who have this kind heart who could help me in my Java Programming Language Project.. I cannot sleep since last week coz I can't find a way how to solve my problem in Java My teacher told me to make a simple game using Java programming Application. Since …

Member Avatar for alc6379
0
122
Member Avatar for joebanks

im trying to sort through an array and i keep getting a null pointer exception when i do... can anyone see where im going wrong....thanks getreleasedate() gets the gregorian calendar date for each object in array. new CD() creates an empty array that can hold five objects public void sortByNewest() …

Member Avatar for joebanks
0
156
Member Avatar for lvoutlaw

Please help frustrated computer rookie. :rolleyes: Here is a copy of my log I recently ran adaware, spybot and Norton Antivirus. Thanks Logfile of HijackThis v1.98.2 Scan saved at 8:10:40 AM, on 9/18/2004 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) Running processes: C:\WINNT\System32\smss.exe C:\WINNT\system32\winlogon.exe C:\WINNT\system32\services.exe …

Member Avatar for Grinler
0
254
Member Avatar for Rentro

Well I got the whole thing working.. thanks a lot. Now I've gotta strugle with the "stdin.readline()" which doesn't wanna work for some odd reason :P I imported the java.io.* i created a new BufferedReader ... and it just doesn't wanna work. Are there any other ways of getting input …

Member Avatar for Rentro
0
81
Member Avatar for PeterX

Hi! How can we print out boolean???? I mean when the method returns false or true. ex: public boolean test(int a, int b) return true return false thanks peter

Member Avatar for Narue
0
55
Member Avatar for rishiraj_bayerd

Hi all, i want to know [B]how jvm works,internal architecture of jvm.....all the the technical information about jvm[/B]...Because it is my seminar tropic. Please help me......It very urgent... Thanking you.... regards Rishi

Member Avatar for cosi
0
161
Member Avatar for tejasmehta

I wrote web Apllication with Servlet/JSP and JDBC. I want to introduce Struts in my prev and new application. All application are database oriented, like resumebuilder, library cataloge viewer and cart application for displaying as well as shopping appliances. My main query is till now I used java core, javascript, …

Member Avatar for cosi
0
157
Member Avatar for eboney

Hello everyone, I am trying to write a program that will list all my videos by title and also by ID# and sort titles. Also I want the user to enter a ID# and they would see what title is associated with the id #. Can anyone give me a …

Member Avatar for Banderson
0
103
Member Avatar for NJR

:cry: I am trying to create a 2d array that will store the information i hold in the txt file (which is in this format x,y - 45 50 36 47 60 56 etc then i am supposed to calculate the distance btn x and y and store it in …

Member Avatar for NJR
0
99
Member Avatar for masconomo

Hi, My wife and daughters are on me to fix our "possessed" computer. Its been freezing solid sporadically and in various programs, IE, OE, Works and just a few minutes ago when I tried to write a new thread! Have to do a total shutdown at cntrl alt delete does …

Member Avatar for dlh6213
0
161
Member Avatar for freesoft_2000

Hi everyone, I am doing a simple compression program in which the application uncompresses the file to a selected folder. The thing is that the file that is being compressed already exists in that folder. What i need is someone to show me a way in whic the file is …

Member Avatar for cosi
0
110
Member Avatar for Cocteau

My browser needs to access a System that is Java developed. But my IE seems not working normal. Im using Windows 2000, IE is version 6 SP1. There is a guide to set the correct settings in the browser to access the system correctly. I have set most of the …

Member Avatar for antioed
0
223
Member Avatar for freesoft_2000

Hi everyone, I have a problem with the fundamentals wit serversockets and sockets in java. In the constructor of the java socket as shown below Socket(InetAddress address, int port) In the above constructor what do they mean by address? In the below java constructor as shown below Socket(String host, int …

Member Avatar for alc6379
0
118
Member Avatar for focusenergy1

I am trying to install JAVA JRE so I can run a program. But when I try downloading it it says Installer cannot proceed with the current proxy settings. I change the LAN settings as they promted me to but it asks for the address and port number which I …

Member Avatar for nanosani
0
185
Member Avatar for bobbyross

Please help me with and example of Java code for project that I must write as a new student that never seen the code before. I must create a program that does Mortgage calculations the number are as follow terms 360 interest rate 5.75 loan amount 200.000 and I must …

0
139
Member Avatar for PeterX

Hi! 1. My metod has 4 int parameter, and return true if least one of those parameter can be dividable with 5. otherwise return false. 2. if least two or three of those parameter can be dividable with 5. Code: class Test{ public static void main(String[]args){ NumberTest myNbr=new NumberTest(); int …

Member Avatar for nanosani
0
84
Member Avatar for Jason Marceau

Hi, I have to write a program that tests if a number entered is prime or not. I have finished all the code to display input prompts and output message Example: " Enter a number: " - " x is a prime number" - " x is not a prime …

Member Avatar for nanosani
0
132
Member Avatar for Jason Marceau

Hi, I have written a program that accepts a positive integer as input and determines whether or not the number is prime, it all works accept when a number is prime it should display " x is a prime number " and continue to prompt for user input ( loop …

Member Avatar for jerbo
0
148
Member Avatar for bheng

[FONT=Arial Narrow]undefined[/FONT] please help me to make my Java programming project. my teacher required me to make at least a very simple game using java application. Since we're still on the basic Java, however I tried to make my own, I still cannot. Please!!!! anyone can help me to make …

Member Avatar for Dani
0
145
Member Avatar for macca1979

Hey there, I'm new to java and I need to write a string that i generated in my code to an output file. I'm currently writing the string to the standard output like so : System.out.println("K_"+Receiver+",t"+msgnum+"(R(" +Receiver+",t"+msgnum+"("+out1+")))"); All the types e.g. 'Receiver' or 'out1' are of type string. Could anyone …

Member Avatar for tigerxx
0
95
Member Avatar for tablet

i unable to read a text file into my code i have the right code i think i just can not make it run with no errors

Member Avatar for tigerxx
0
209
Member Avatar for perky_jing

HELP.. I have a frame set to the screen size of my monitor, background color is yellow. I have a panel returned by midFrame() (outerPanel) supposed to be located at the center of my frame. i used the setBounds() to place my panel in the center but it doesn't do …

Member Avatar for perky_jing
0
183
Member Avatar for PeterX

Hi! I can not solve this JAVA problem. I tried to write: final int a=100; int nbr=Input.readInt();// from keyboard I try to find (nbr*nbr)>a ex: nbr=11 and 11*11=121 12*12=144 10*10=100 Output must be 121, not 144 but 144 is also >100 thanks Peter

Member Avatar for nanosani
0
322
Member Avatar for PixureTakr

Hello .. please check this log to see why System32 window open on startup and programs are slow to open and only do so after the screen and icons flicker after about 30 seconds..thanks Logfile of HijackThis v1.98.2 Scan saved at 4:54:00 AM, on 9/25/2004 Platform: Windows XP SP2 (WinNT …

Member Avatar for crunchie
0
180
Member Avatar for freesoft_2000

Hi everyone, I have a weird problem. I have created a zip manager and unzip manager. The zip manager works alright in a sense that it can create zip files and also the contents of the zip file zipped by my own zip manager can be extracted by using winzip. …

0
67
Member Avatar for Maverick

ok the error is that it doesnt recognize the package class. [code] package celsiustofahrenheit; public class CelsiusToFahrenheit { public static void main(String args []) { double celsius, fahrenheit = 0; System.out.println("\n\tEnter temperature in celsius: "); celsius = MyInput.readDouble(); fahrenheit = 1.8 * celsius + 32; system.out.println("\n\tThat is " + fahrenheit …

Member Avatar for PeterX
0
174
Member Avatar for Typhane20

I'm new to java and i'm taking this java class in I have to create a program that prompts the user to enter his/her high school's name, and two decimal number (ie. 5.8, 3.45). what i have is public class FirstProgram2 { public static void main (String[] args) { System.out.println("Martin …

Member Avatar for nanosani
0
131

The End.