32,204 Topics

Member Avatar for
Member Avatar for cproud21

I have the following program to write: given the TimeAT class: The time class uses two integers, one to store the hours and one to store the minutes of a given point in time. Write a Clock class which uses TimeAT class objects to store the current time and an …

Member Avatar for javaAddict
0
129
Member Avatar for letlet_pogs

hello guyz, do you know best sites to recommend about "JOPtionPane"?? i need to have more tutorials with this due to our next project..i hope you could help me guyz...thank you ahead..

Member Avatar for letlet_pogs
0
72
Member Avatar for orangejuice2005

I have this big operating system's project where I have to basically write my own mini operating system. I have everything broken into pieces and am taking it step by step. Starting with the loader. Prior to this class, I had no idea how intricate an OS system was and …

Member Avatar for orangejuice2005
0
261
Member Avatar for countrygirl1970

Hello, I am trying to get my cost, salestax, totalamount to come out in the output dialogbox to have only two decimals places. I know how to do on the printf but not on the dialogbox. Please help. Here in my complete code. [code] // Displaying multiple strings import javax.swing.*; …

Member Avatar for countrygirl1970
0
241
Member Avatar for SyLk

[CODE] import java.util.Scanner; import java.io.*; public class program1 { Scanner filescan = null; public program1(){ try { filescan = new Scanner (new File("t.txt")); } catch (FileNotFoundException fe){ fe.printStackTrace(); } } public static void main(String[] args)throws IOException { printFile(); } public static void printFile()throws IOException { int num; while(filescan.hasNextInt()){ num= filescan.nextInt(); …

Member Avatar for Ezzaral
0
185
Member Avatar for alsoumhi

Hi gys I hope you all fine I just have a question that I would send two UDP packets from the client to the server and the server will reply back the both messages to the client , my problem is that my program only sends one packet to the …

0
74
Member Avatar for tonymate

Hi friends I am newbie and working on multithreaded programming and thread synchronization in Java to control traffic. If you are familiar with multithreaded and thread synchronization, please email me for detail information: <EMAIL SNIPPED> Regards Tony

Member Avatar for Denniz
0
37
Member Avatar for Kamal_Java

Hi ... [ Need ur suggestion NOT code .... ] This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ... I have two classes Named Passenger class and container class . Passenger class …

Member Avatar for stultuske
-1
153
Member Avatar for cardanadam

Hello I want to do a program.And this program will do that i will give a list which have mirror urls.I mean i want to download same file from that urls.But i want to select which one is fastest mirror.I mean which is way to ask ftp sites are you …

Member Avatar for stultuske
0
75
Member Avatar for tonymate

Hi friends I am newbie, accidently posted this post on introduction forum. Anyway, I am working on multithreaded programming and thread synchronization in Java to control traffic. I was told that Java is easier with multithreading than C++. I don't really mind as long as it works as expected. Even …

Member Avatar for javaAddict
0
127
Member Avatar for blue_moon

> Write a method that converts its String parameter so that letters are written in > blocks five letters long. For example, consider the following two versions of the > same sentence: > > Plain: This is how we would ordinarily write a sentence. > Blocked : Thisi showw ewoul …

Member Avatar for stultuske
0
262
Member Avatar for MNR

i have two classes one is MyForm and the other one is MySwingWorker, i get a null exception which is related to line 36, i'm not sure what i have to pass to MySwingWorker class. please help!!!! [CODE=java]public class MyForm extends JFrame { public static void main(String[] args) { new …

Member Avatar for MNR
0
103
Member Avatar for Koldsoul

I am trying to compile my program on a Unix machine per my instructor's directions. I am getting two errors when I compile my interface. The two errors are cannot find symbol symbol: class OverFlowException location: interface Ch3Pkg.PracticeCollection<E> public void add<E element> throws OverFlowException; cannot find symbol symbol: class ElementMissingException …

Member Avatar for masijade
0
100
Member Avatar for Koldsoul

I am writing a program that uses two arrays, one holds int and one holds String. I am using an interface and building a class that implements it. The method in the interface uses a method written like [code] public void add(E element) throws OverFlowException; [/code] This method is to …

Member Avatar for masijade
0
81
Member Avatar for Koldsoul

Hello, I am writing a while loop that will run as long as the cell in the array is not equal to the object element. However, using the .equals method I cannot find a way to do so so that the loop uses not equals to compare the object to …

Member Avatar for peter_budo
0
104
Member Avatar for donaldunca

I want to ask are these things possible (I use J2ME) 1) Normally, when you make a call, you input a phone number and that phone number appear from right to left. Can I code that the phone number appear from left to right ? 2) For example, when I …

Member Avatar for peter_budo
0
174
Member Avatar for blue_moon

> Write a method that converts its String parameter so that letters are written in > blocks five letters long. For example, consider the following two versions of the > same sentence: > > Plain: This is how we would ordinarily write a sentence. > Blocked : Thisi showw ewoul …

0
77
Member Avatar for uravikishore

Hi, I Had to complete a task of program on networking in java. they are 1) the program as to read the MAC address, IP , and the computer name in the network 2) Program to know what site is the user is surfing in the network Please give me …

Member Avatar for peter_budo
0
72
Member Avatar for winky

Hey guys, Been awhile since I've done any JAVA, so I'm looking for some help. I'm trying to implement a recursive descent parser with three terminals ( @ , ?, @@). I could use some help on a couple issues: 1) The @ operator is supposed to be a unary …

0
64
Member Avatar for ravikiran032

i would like to know what digits of ipaddress define. suppose ipaddress of 192.168.0.59 what these numbers 192 ,168 , 0 ,59 defines. does they have any value??

Member Avatar for peter_budo
0
89
Member Avatar for SonxQ7

Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) …

Member Avatar for vite
0
186
Member Avatar for janustt

Basically, I was wondering how I could read a text file (Transactions.txt) which will have one number per line(ex. 2000 on one line, 25 on another). This number is either a deposit or a withdrawal to a checking account. The program should read the Transactions.txt , then write the deposits …

Member Avatar for masijade
0
165
Member Avatar for deepa_vsd

Hi, I have opened Internet Explorer by using Process p = Runtime.getRuntime().exec(browserCommand+" " +url_name); Now I want to know how to close opened internet explorer using java program I used p.destroy() method, but it's not working.

Member Avatar for Ezzaral
0
157
Member Avatar for clueless101

This program is suppose to allow the user to enter a student's name and (4) scores via GUI, instead of Scanner class. The class is to use a String array for 5 names, an array of 5 characters to hold letter grades, and 5 arrays of four doubles for each …

Member Avatar for VernonDozier
0
169
Member Avatar for peter_budo

I'm trying to get character "2936" printed out ( it is the arrow on your big Enter of the keyboard) as seen in Unicode charts [URL="http://unicode.org/charts/PDF/U2900.pdf"]Supplemental Arrows B[/URL]. However it does show as question mark. Suggestions? [code=Java] public class PrintCharacters { public static void main(String[] args) { String[] one = …

Member Avatar for di2daer
0
111
Member Avatar for mohammed2raja

In php file I write ; echo "<meta http-equiv=Refresh content=0;url=login.html>"; Here i load a login.html file. Along this i want to pass a php variable(suppose $nflag) content to login.html file, so that i can use it in javascript within login.html file. Please Help me.

Member Avatar for cwarn23
0
1K
Member Avatar for Darklighter201

I need to finish this assignment by tonight. I have been working on it for the last five hours and I am completely stuck. Any help would be greatly appreciated! I have already talked to my teacher, but she is awful. No help at all. This is what I have …

Member Avatar for Darklighter201
0
74
Member Avatar for stilldancin12

yet again right? Ok, so this time, the task is to write an application that asks the user for his or her birth date and replies with the day of the week on which they were born. So here is the code i have. [ICODE] package Ch2Scanner; import java.text.SimpleDateFormat; import …

Member Avatar for di2daer
0
97
Member Avatar for SyLk

how do i declare a scanner object, filescan publicly so that i may use filescan in varios functions i found this statement in a forum----> private static Scanner scanner = new Scanner (1 3 4 4"); when I modified it to-----> public static Scanner filescan = new Scanner(new File("inputdata.txt")); //declared …

Member Avatar for Ezzaral
0
380
Member Avatar for Kamal_Java

Hi ... [ Need ur suggestion NOT code .... ] This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ... I have two classes Named Passenger class and container class . Passenger class …

Member Avatar for stultuske
0
2K

The End.