32,199 Topics

Member Avatar for
Member Avatar for VirusTalker

import java.io.*; import java.util.StringTokenizer; public class Proj21110 { private static int MAX_UNKNOWNS = 10; public static void main (String[] args) { headerMessage(); // print header BufferedReader in = null; if(args.length > 0) { in = getReader(args[0]); // open file System.out.println("Opened file: " + args[0]); } else { in = getReader("guess.data"); …

Member Avatar for kalyan_au_cse
0
140
Member Avatar for kalyan_au_cse

Hi, I have project where a part is to make a maven 2 plugin for files to escape HTML content and generate a new file. I did it, to do this I used apache-commons-lang 2.4 library. But there is a new requirement now. They want to use it on a …

0
67
Member Avatar for francisprite

I already know C and I have to learn Java. Can anybody recommend an ebook I can read?

Member Avatar for kalyan_au_cse
0
122
Member Avatar for phintastic

I'm not quite sure what is wrong, and I am VERY new to programming but heres teh problem: Scanner scanner; scanner = new Scanner(); This is what I have, and this is the error message: cannot find symbol symbol: constructor Scanner() location: class.java.util.Scanner And also, there is a problem with …

Member Avatar for Alex Edwards
0
1K
Member Avatar for priti_s

hi i am new to java i have been assigned to a work where i have to take DTD file as input & i have to generate TRN file & i have been told to write the program into different classes. From DTD file i have to make a different …

0
50
Member Avatar for Gerbilkit

I say urgent because I have to finish it pretty much tonight or maybe very early tomorrow morning. But I am moving along decently on the project, so it's not like nothing is getting done. Basically I have a problem with a class I am in the process of completing, …

Member Avatar for stema08
0
240
Member Avatar for ingza

Hey there! I was wondering if someone here could help me out a bit. I'm a beginner in Java and I'm struggling a bit with understanding if it is me who is doing something wrong or if something is just missing from my software to run the thing I'm trying …

Member Avatar for ingza
0
113
Member Avatar for brain_26

Need some help with this script. When I run this script it works well. However, at the end of the day it freezes at evening. The following day when I run the script it starts at evening, and it should start by saying morning. Am I missing something? [code] string …

Member Avatar for Ezzaral
0
104
Member Avatar for kogues

Ok, I'm taking a intro to programming with java class, and for the most part I've been able to keep up with the assignments. I'm in the process of writing a statement that will output the cube root of a number, I've come up with the below as what I …

Member Avatar for Ezzaral
0
72
Member Avatar for qaz1134

hello, guys i have a really stupid problem about characters and string; i dont know which to use. wacko.gif iam bubble sorting for example a name::'( :?: input: [B]dreamincode[/B] output: [B]a c d d e e i m n o[/B] why does my code in error? my compiler saids the …

Member Avatar for Ezzaral
0
131
Member Avatar for rainny

Hi, I have an aaplication which can play the .wav file. However, I want to get the timing of each word spoken by the person. For example, when the person speak the first word, the time will being recorded in the text area and also the word spoken. the process …

Member Avatar for Ezzaral
0
99
Member Avatar for ocreds

I find it difficult in this java programming language that's why I need your help to defend this code in my class. I got this code from internet with comments and explanation. but there are some codes and explanation that I don't understand. [CODE= java] /* Read me: Note: As …

Member Avatar for javaAddict
-2
288
Member Avatar for afolli

Hello, I have to base64 encode a large quantity of data and include it in the XML response of the webservice.The WSDL define the XML element in the following way: [CODE]<xs:complexType name="MessagePart"> <xs:simpleContent> <xs:extension base="xs:base64Binary"> <xs:attribute name="contentType" type="xs:string" default="text/plain" use="optional"/> <xs:attribute name="length" type="xs:int" default="0" use="optional"/> <xs:attribute name="offset" type="xs:int" default="0" use="optional"/> …

Member Avatar for afolli
0
173
Member Avatar for knarffrank

I'm practicing java language.. please help me out I got this error saying.. cannot find symbol symbol: constructor compAdd() location: class compAdd [code=java] compAdd c1 = new compAdd(); ///////////////compAdd.java import javax.swing.*; import java.awt.event.*; import java.awt.*; public class compAdd extends JFrame { public JButton button = new JButton("Add"); public JTextField txt1, …

Member Avatar for stephen84s
0
118
Member Avatar for llemes4011

Ok, so, for school, we have to write a program that calculates the value of Pi as accurately as possible. Earlier in the year, we worked with a "Turtle" program, it drew lines and circles, ect. it started in the center of the JFrame, and moved to where you told …

0
59
Member Avatar for terencemadzima
Member Avatar for dickersonka
0
52
Member Avatar for VernonDozier

This is a simplified version of a larger project. I have three JPanels contained in a larger JSplitPane called [ICODE]wholePanel[/ICODE]. The top panel and left panel hold labels and buttons, which I have not included here. The lower right panel, called [ICODE]canvasPanel[/ICODE], is where I draw shapes. I'm trying to …

Member Avatar for VernonDozier
0
822
Member Avatar for cmatos15

Hi, I need help on this assignment I have, the question asks to write a program that reads a non-negative integer number (4 digits maximum) and writes that number in words. it gives me: Private Instance [B]Variables: int value;[/B] The value of the integer number [B]Constructor[/B] [B]Numbers(int n)[/B] Initializes the …

Member Avatar for Easter Bunny
-1
255
Member Avatar for redflame777

Could some one look at this program and let me know if the Scanner object and variables are defined and defined correctly? And make suggestions on how to fix it if it is wrong. I also want to know if my validations are correct for employee, hours, and rate are …

Member Avatar for Easter Bunny
0
101
Member Avatar for Gerbilkit

Well I just started a university class in Java, I am used to PHP so this has been a confusing shift in many ways. Right now I'm struggling a bit with my first homework assignment, although more in a general understanding of java than nitty gritty details. The code is …

Member Avatar for VernonDozier
0
150
Member Avatar for bops

Hey all, very simple question here.. How in Java can I get a Rectangle object that represents the Desktop coordinates? In fact just the width and height of the Desktop will do.. I'm just looking for something similar to the following C code [CODE=C] HWND hDesktop; hDesktop = GetDesktopWindow(); if …

Member Avatar for bops
0
121
Member Avatar for Gaspacho

Hi there, I'm currently making application for my school project. I have managed to get everything working but there is still one thing left on my list. The application should be capable of listening on a specific port for a specific type of packet (the protocol is SCTP). I tried …

Member Avatar for peter_budo
0
101
Member Avatar for nehagupta0809

hi i have two flat file having content like this file1.txt raghu,23,1000 ragiv,66,1800 file2.txt ramya,45,2455 ragiv,66,1800 i need to compare the two file and print the content in the other file which are different among the two file i.e raghu,23,1000 ramya,45,2455 plz help thanx in advance

Member Avatar for stephen84s
0
221
Member Avatar for kanika.khattar

while buildin a j2me aplication using java wireless toolkit dere was a warning.. warning: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (use -source 1.4 or higher to use 'assert' as a keyword) assert false; ^ can nebody help in solvin d …

Member Avatar for stephen84s
0
87
Member Avatar for redflame777

In the code below I am getting a complier error that looks like this: ';' expected }while (employee_equals("")) ^ I am not sure why I am getting this error or how to fix it. [code] //get employee name { System.out.println( "Enter employee name: " ); employeeName = input.nextLine(); do { …

Member Avatar for redflame777
0
122
Member Avatar for kiboko

I admit I am a Java infant, an unable to hold my head up on my own infant. I greatly appreciate any help or advice you may offer! Here is the problem. I have one class that describes attributes of a city. I have another class that creates an object …

Member Avatar for Easter Bunny
0
74
Member Avatar for mrjoli021

I am new to programing. i know how to return a date [code] public Date yesterday() { if(this.day == 1) { if(this.Check("Mar", this.month)) { if (this.checkLeapYear(this.year)) { this.day = 29; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = this.monthOfYear[this.flipBack(this.monthOfYear, this.month)]; } else { this.day = 28; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = …

Member Avatar for masijade
0
218
Member Avatar for SyLk

Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i …

Member Avatar for VernonDozier
0
106
Member Avatar for Muaz AL-Jarhi

Dear, All Hello, Im a student studying Computer Science and Engineering at the German University in Cairo (GUC). I take a course were I should Implement a game called "Attaxx" using java programing. I should submit a java engine for the game by next week or so... its quite similar …

Member Avatar for naniesc
0
186
Member Avatar for debargha

HII ALL can you help me with some project ideas on J2EE platform.I am doing B-TECH in CSE final year Our college is not accepting application based projects(my e-banking project has been disapproved)So I am all messed up.Please help me with few topics not application based like I am thinking …

Member Avatar for Alex Edwards
0
90

The End.