32,204 Topics

Member Avatar for
Member Avatar for janamrob

[B]Hi, I'm new in java. Can someone help me with this problem. I've attempted it and the code is as shown after the questions:[/B] [B][U]Question:[/U][/B] 1. Create a new Movie class which has two properties, title and rating. 2. Create a new Cinema class, add method addMovieGoers which takes a …

Member Avatar for javaAddict
0
4K
Member Avatar for nidhi.juneja

can anyone give me idea of how to makse a mail server .. preferable in java... thanks ..

Member Avatar for stultuske
0
89
Member Avatar for winky

Hey everyone, I am trying to convert the members of a string into their integer values, but not ASCII values. For instance, if I have the string "12", I want the following portion of the code to spit out 3, but instead it spits out (49+50=99) for the ASCII values. …

Member Avatar for javaAddict
0
114
Member Avatar for Koldsoul

I am working on a program that reads in a text file as a command line argument, then goes through the file, breaking the file down into strings, special symbols (such as .:!;?) and integers. The program stores each type into its own collection. I have all the collection methods …

Member Avatar for Koldsoul
0
145
Member Avatar for Chaster

Hi, I have some project in which I have to deal with similar text files merging. Is there any java package for this task? If no, does anyone know how CVS (or any other version control tool) deals with such merging operations? I mean based on what? Any personal idea …

Member Avatar for Ezzaral
0
83
Member Avatar for W@n

Hi, i am currently working on a java assignment which require me to create a binary search tree and then get the value of the deepest node which refer to the last level of the binary search tree with level by level traversal. I did the insertion and level by …

Member Avatar for brianlevine
0
81
Member Avatar for priti_s

Hi I have come across a question in a collection which says: One can add a reference of a collection to itself. Is it true or false? I read the explanation that, we can add the reference to the collection to itself, but it results in the [U][B]stack overflow of …

Member Avatar for Ezzaral
0
118
Member Avatar for aneeshanand

Hi All Here I got a challenging task to do in any of JAVA/JavaScript/AJAX technologies with an XML as input. Task: Graphical representation of Application Dependency among the machines in a Network. Technology to use: JAVA/JavaScript/AJAX/XML Conditions: Source Files should be available and cannot use any licensed applications/libraries inside the …

Member Avatar for stultuske
0
163
Member Avatar for janamrob

Hi, below is the Question and MYCODE. I've attempted it but there still some problems that I'd appreciate if someone help me thrush out. [B][U]QUESTION[/U][/B] 1. Create an interface called limb and modify your arm and leg classes so that they implement it. 2. Create a new abstract class called …

0
89
Member Avatar for jee85

[code=java] #include <stdio.h> #include <stdlib.h> #include <math.h> #include "matrix.h" /* -------------------------------------------------------------------------------------- The GaborFilteredImg provides the outputs of the Gabor filter bank -----------------------------------------------------------------------------------------*/ void GaborFilteredImg(Matrix *FilteredImg_real, Matrix *FilteredImg_imag, Matrix *img, int side, double Ul, double Uh, int scale, int orientation, int flag) { int h, w, xs, ys, border, r1, r2, …

Member Avatar for stultuske
0
154
Member Avatar for askhan

hi all i am new to dani web so if i make any mistake please forgive me ... I am just wodering that some could help me in my assignment.. i am not a programming geek and offcourse not in java. my teacher has gave me this assignment i dont …

Member Avatar for masijade
0
314
Member Avatar for programmingme

I'm in beginners Java and I have a question... I've written about 16 programs in my class so far and in all my programs this is what we would do: Create a Folder (let's call the folder Project1) Make a .java file (project1.java) then we would go to our practice …

Member Avatar for stultuske
0
103
Member Avatar for jee85

[code=java] //The alignment of the features is assumed to be AVG, VAR, CSD, GABOR import java.io.*; import javax.imageio.*; import java.awt.*; import java.awt.image.*; class retrievalGabor { public static void main(String args[]) { if(args.length!=6 && args.length!=7) { System.out.println("The parameters are {Query Image} {Query Gabor file} {Features File} {Gabor Text File} [blocks] {Relevant …

Member Avatar for darkagn
-1
413
Member Avatar for jkarimi

I really am stuck as to what I am doing wrong with this program. Help would be much appreciated :D. [code] // DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: Original price, discount, discounted price, and total price for all items. import javax.swing.*; …

Member Avatar for masijade
0
136
Member Avatar for gangsta1903

I want to draw a tree in Jframe, the tree view is available in the attachment, As you see there are nodes connecting to each other.I know that I have to find the midpoint of the nodes at the same level or things like that. What I want your help …

Member Avatar for Ezzaral
0
3K
Member Avatar for johanna26

I need to reproduce the following java applet (click potometer simulation) to modify with some more parameters. [url]http://kegsnet.org.uk/mod/resource/view.php?id=2760[/url] I tried to retrieve the applet class file (Potometer.class)but could'nt get it... Can anyone guide me in extracting the code... Thanks, Johanna

Member Avatar for MoZo1
0
116
Member Avatar for need_Direction

Hi, I wanna ask how to create 3D volume object contains x, y, z without using 3D array in Java?

Member Avatar for MoZo1
0
165
Member Avatar for cproud21

I have the following programming challenge to complete, and am stuck. I know what i have to do, which is to get information from the other three classes into the parking ticket class, and then print the parking ticket using an if statement if the time has expired. I am …

Member Avatar for PoovenM
0
165
Member Avatar for ejosiah

Hi everyone, anyone got a solution to this problem; some floating point arithmetic do not return the correct answers in Java one of such is subtracting 0.8 from 0.9; you would expect to get 0.1 but u get 0.09999999999999998. No one should tell me about trying bigDecimal because that does …

Member Avatar for javaAddict
0
164
Member Avatar for rainny

Does anybody know how to create the login page by using Java and MySQL? The login page is contains the username and password, then after check the database, if the username and password is match, then user can login to the main page. Anybody have any idea on it? Or …

Member Avatar for peter_budo
0
108
Member Avatar for VernonDozier

Okay, suppose I have a class A and subclasses B, C, D, E, F, G. I have a function: [code] public void foo (A object) [/code] I have the default function handler which handles A objects which aren't subclassed, and the B, C, and D subclasses. Subclasses of type E, …

Member Avatar for VernonDozier
0
258
Member Avatar for tuse

Hi! I am doing a project which tries to simulate a DBMS. The records for a relation(table) are saved in a file on disk. What I wish to do is - Specify the block to which each record be written / Save the content block wise Reason for doing this- …

0
62
Member Avatar for radhika_kodam

i have assignment on java class. plz help me the assignment problem is:Create a class Rectangle with 9 methods: 2 constructors, 3 mutators, 3 accessors, and area. plz help me.

Member Avatar for stephen84s
0
139
Member Avatar for roshansimon

Hey, I have a program that has to draw a polygon, then apply a recursive function that fill the polygon with a color. Unfortunately, I cannot use the fillpolygon() function, but have to make my own function. I have developed a code for any small polygons. But if I apply …

Member Avatar for brianlevine
0
101
Member Avatar for Grub

Hi I have a program that has a JTree that lists of all the directories on my computer. I also have a JList in and an add button. Now I am trying to select or highlight a directory in the JTree, click the add Button and then update the JList …

Member Avatar for brianlevine
0
325
Member Avatar for Tootlol

# If balance is private,[B][U] what is the upper bound on the number of lines of code [/U][/B]which must be examined to make the change to the Account class? \ What is the "upper bound on the number of lines of code" referring to?

Member Avatar for brianlevine
0
93
Member Avatar for codered152

hi guys i like to open as many frames user wants to open, i mean they can keep clicking the button and i like new frame keep opening. so this is something i got, now i know i have to use int to keep track of how many frames are …

Member Avatar for brianlevine
0
93
Member Avatar for bharath_prasad

1.Write a class called Student. Data members: name: String; age: int; major: String. Methods: constructor with 3 arguments that initializes all data members; print(): prints all data to stdout in one line, align the printed items in colums, no newline at the end; println(): same as print() but with newline …

Member Avatar for Salem
0
106
Member Avatar for Tyster

Hi there folks. I have an app that has several classes but for some reason one of these classes isn't giving me a return value. What I want to check is whether or not this code will return the expected string... [code] String seatLayout; public String showAllSeats(String flightNumber){ fn = …

Member Avatar for Tyster
0
203
Member Avatar for Gerbilkit

I am working on a project that requires the main system, EmployeeSystem to be able to open a file with JFileChooser, and then write to that file, run a payroll system on it, and search it for a particular employee using a directory system. I am struggling right now to …

Member Avatar for ~s.o.s~
0
128

The End.