32,199 Topics
| |
I'm working on a guessing game where the object is where the player is given a board of 25 symbols and asked to try and guess the location of 6 hidden symbols. However, I've encountered two bugs whose cause I cannot identify. 1. Regardless of whether the guess is a … | |
Hello everyone, for example, I have name.txt file. It contains three lines of text (see below): *Roses are red% Sky is blue% JAVA is cool%* All lines ended with % symbol. I need to count how many every line have characters and which character is repeated max and min times. … | |
Hello , I'm trying to solve a "known problem" in XPath 1.0 . From [msdn](http://msdn.microsoft.com/en-us/library/bb341675.aspx) : "***Although the ordering of returned collections is not specified in the XML XPath Language 1.0 Recommendation, this extension method returns nodes in document order. Note that nodes are returned in document order even when … | |
HI I am developing a web service client using netbeans ide . I have used the code completion feature to implement the submit message method : import javax.xml.bind.JAXBElement; import uk.co.csoft.www2.dtd.sendsms5.Message; import uk.co.csoft.www2.dtd.sendsms5.ObjectFactory; import uk.co.csoft.www2.dtd.sendsms5.Recipient; public class Main { public static void main(String args[]) { //Recipient r = new Recipient(); //Message … | |
Hi all, I actually need to use a sorted map.So i tried using Tree Map.But the problem is that This works well with sort key having values upto 9. With more than 10 items I see abrupt results with sort key arranged in the order = 1, 10, 11,12,--------17, 2, … | |
I need Help Here /* Name: Ashley Powell File Name: Employee */ public class Employee extends Person { private double annualSalary; private int hiredYear; private String ID; public Employee(String initialName, double initialSalary, int joinedYear, String id) { super(initialName); annualSalary = initialSalary; hiredYear = joinedYear; ID = id; } public void … | |
Hi, I am conducting some research for a possible application and need some people to fill in my questionnaire. If you could fill this in for me it would be much appreciated. It will only take 1 minute max. Thanks https://docs.google.com/spreadsheet/viewform?formkey=dHpUYnE1RWhQcXRQNHhfQzEyZk9zYlE6MQ | |
Good evening, How do I need to put string into array characted by character? For example: I have a string "WELCOME". Then I can call command coolarray [ 3 ] and I got a letter L ? Thanks! | |
Hi, I'm using the getRGB function to get the color of a pixel of a BufferedImage. It returned a number like 2001231. What I want to do is use setRGB to set the color of this pixel to something so that getRGB returns 2000000 instead of the original value. How … | |
Hello , So ive been given an assignement in my university of "fixing" XPath and get it to return the nodes in the correct order. Ive been trying to find a way around writing a very long code and breaking each expression into little peaces and putting it back together … | |
Ok, I am totally confused - probably because I've been staring at my computer for hours, but I need some guidance (not for homework, just my own personal knowlegde)... Here's the output I'm trying to achieve: 012343210 001234321 000123432 000012343 000001234 ...And I know I need to use a for … | |
Can anyone tell me the real time scenarios used in projects of using interface and abstract classes in java | |
Okay guys. I want to create discussion. Java people we all know of the Streamtokenizer class or as I call it "lexer" class. My questions is how helpful can this class be when we try to create a lexical analyzer? How can we manipulate it in order to tokenize our … | |
hello, I made a little game that is similar to "Where's Waldo?", but it has several different people to find in each level. Anyway, each person is found by the user when he/she clicks on them. Sometimes the people are hidden in a crowd, or hidden in a bigger image. … | |
hi there i cant seem to figure out how to print each name and letter grade of each person once and my program displays a indexStringoutofBound execption please help solve my problem heres my codes. ackage project; import javax.swing.JOptionPane; public class DoingATest { public static void main(String[] args)throws StringIndexOutOfBoundsException { … | |
Hello all, been a while since I've asked a question. I'm working on a project just to practice and for fun and I've run into a snag. I'm working on a painting type program and I'm trying to get a generic Buffer class for the images so I can use … | |
hi is there any way in java programming to make a compass which shows directions if please tell me how to get the coordination of lattitude so that the needle of the compass can point to the appropriate direction with respect to these values | |
I new to java's applet programming & there is a problem in my program This is my program: import javax.swing.*; import java.awt.*; import java.awt.event.*; /*<applet code=Rect height=600 width=800></applet>*/ public class Rect extends JApplet implements ActionListener { JLabel jl1,jl2,jl3,jl4; JTextField jt1,jt2,jt3,jt4; JButton jb; int x1,x2,y1,y2; public void init() { Container c=getContentPane(); … | |
I am not getting this program since i beginner to applet programming import javax.swing.*; import java.awt.*; import java.awt.event.*; /*<applet code=Login height=500 width=300></applet>*/ public class Login extends JApplet implements ActionListener { JLabel jl1,jl2,jl3,jl4,jl5; JTextField jt; JPasswordField jp1,jp2; JButton jb; public void init() { Container c=getContentPane(); c.setLayout(new FlowLayout()); jl1=new JLabel("Username : "); … | |
Hi everyone, I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering - in C++ you could have a header file with functions only in it, say … | |
Hi there im in need of a java project that takes in a memo of string letters and persons name and String letteranswers to 10 multiple choice questions and compare the memo with each students answers and disply the students name and how many letters he/she got correct without using … | |
i have a error in this program...i m tryin to write a java GUI program that converts character to corresponding integer and vice versa...tis is my code...can anyone help me solve the error???the error is : 1 error found: File: C:\Users\Kumaresen Nair\Desktop\Conversion.java [line: 58] Error: The local variable word may … | |
Write a simple SMTP server that is able to establish an SMTP connection with the client and receive the email sent. The SMTP server should reply the client with the appropriate reply code based on the following SMTP commands. Command Reply Code DATA 354 HELO 250 MAIL FROM 250 QUIT … | |
After setting the time where it should start, you enter "y".. the timer will start.. It's supposed to stop whenever you want it to by pressing "n" but I don't know how.. The only way I know how to get it to ask for "y" or "n" again is to … | |
i have encounter problem on my java file,i can't find the solution..just only one error.. here is the java file and it give me an error of error: "reached of end of file while parsing in line 137" can anyone help me please?thanks in advance.. import java.io.*; import java.util.*; public … | |
So I'm trying to make a lottery program which outputs up to 6 sets of 6 random numbers using only 2d arrays and arrays for my project. No arraylists are allowed. Here is what i have so far, but it's not running because I don't have a main file?. Someone … | |
Hi all, I'm new to java and here is my code. It runs, but the output is not what I wanted. This project allows the user to enter up to 6 lottery tickets and I have to generate random numbers 0-49. The number generate fine, but the number of tickets … | |
| I just started learning java a week ago, and I'm trying to make my first program - a simple grade calculator for a class I'm in - and I can't get it to compile for the life of me. I've finally gotten it down to one error ("Comp202Grader.java:60: variable letterGrade … |
Hi guys, I was supposed to create a program that simulates a haunted house. the output was supposed to be like: Welcome to the Haunted House! You are in: Front Foyer Possible directions are: North(N), East(E), West(W), Abandon(A) Where would you like to go? s Invalid Command You are in: … | |
Hi, I was asked to create a program that converts a .csv (I converted it to a .txt format first) and I've put together a pretty basic one that reads the data in the text file and formats it into XML, then saves it as a .xml. By basic I … |
The End.