32,199 Topics
| |
Hi , I am not able to execute the below makefile. [CODE] JFLAGS = -g JC = javac .SUFFIXES: .java .class .java.class: $(JC) $(JFLAGS) $*.java CLASSES = .\minimax.java default: classes classes: $(CLASSES:.java=.class) clean: $(RM) *.class [/CODE] I am getting this error make: Fatal error in reader: makefile, line 6: Unexpected … | |
1. The InputMismatchException. Write a program that prompts the user to read an integer and displays whether the number is even or odd. If you enter an invalid integer (for example, 2.5 is not a valid integer) your program should say so. Note, you will need the following import statement: … | |
I have a class that contains two arraylists- student names and Ids I want to put them into LinkedHashSet( so, I can sort, delete, add and edit e student profile); I created a class called Student that contains setName getName setId getId and toString methods. now, I try to do … | |
I'm am reasonably new at coding and am currently studying it at College. While in my break I found Project Euler a neat little site with problems which I have been working through for an extra challenge. This is the question that I am stuck on: [url]http://projecteuler.net/index.php?section=problems&id=8[/url] basically you are … | |
Hi all, I am using Eclipse to create a slideshow program. Currently have anything set up and it works fine. However I would like my BufferedIamges to be made into a video with a time frame of 15seconds for each picture. I only want to have maybe up to 4-5 … | |
I'm not very well up on ant, trying to learn a few things about it this afternoon. Is it possible to read in values from the command-line ant call? The scenario I have in mind is this: I want to make a generic build file that would have targets for … | |
i want to output final coccer team standing that uses random so every time the match is played the final four team changes so how do i output that the ouput to the file changes as well | |
Hey guys I have been having lots of problems getting my animation to not flicker. I have read that double buffering is a good way to stop the flickering but everything I have tried doesn't do anything to help. If you could please help me understand what I am doing … | |
Hello all. The Java Date and time classes are difficult. I think I have to use java.sql.Date which is a sub class of Date but is not a date unless the time is normalized to zero. so I've heard. I would like to work with my studentDOB first by collecting … | |
Ok so this is part of a project I'm working on. I am dealing with DNA strings that only consist of the letters ACGT. I have to parse these strings into a file and be able to read them back out of the file. However when putting them in the … | |
i need to call an array called team into a bubble sort that swaaps 3rd 4th ist and 2nd place in order. in the code i will list the code for the out come of the match which is good no errors there but i need to get the bubble … | |
Is it possible to communicate with java to a usb that has been converted into an antenna, that sends and recieves signals to/from a remote controlled car? | |
Hey Everyone, I'm new to this form, and I seem to like it so far. Anyways, I have this Project that i'm nearly done with but in the sub-class I'm getting 0.0 as an output instead of the actual calculation. Below is the project and the code: You are requested … | |
Hi, I am using HTTPRequest and HTTPResponse to get the page source of a site. and i'm getting a warning message "Enable JavaScript to view your site". Is there any request i should add to enable JavaScript | |
i want to validate whether given file is text file or not using regex could you please give example | |
Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: … | |
HI, I am very new to jasper.so can you please help me to solve this error. Error: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. Cannot cast from double to Double value = (java.lang.Double)(1 - (((java.lang.Float)field_Current_year_cost.getValue()).doubleValue() / (((java.lang.Float)field_Current_year_price.getValue()).doubleValue() * 0.93)));//$JR_EXPR_ID=31$ 2. Cannot cast from double to Double … | |
Hi, I am getting a null pointer exception with the code below. From what I have read, it seems like something is null, but I do not understand how this could be a problem? The error is occurring on line 205 of the StudentContainer class. (This is at the very … | |
Create a non-GUI-based Java application that calculates the payroll for a department in an organization. The application should display text that requests the user input for the name of the department, the number of employees in the department, and the average salary for the employees in the department. The number … | |
here is my one class (controller) and the other (GUI) what is happening is inside the SearchListener inner class for the button, I am calling a method from the controller class (i have already tested the parameter sent and that part works fine) but when i click on a code … | |
Consider the following two classes. [CODE]public class Dog { public void act() { System.out.print("run"); eat(); } public void eat() { System.out.print("eat"); } } public class UnderDog extends Dog { public void act() { super.act(); System.out.print("sleep"); } public void eat() { super.eat(); System.out.print("bark"); } }[/CODE] Assume that the following declaration appears … | |
need some help with this lab this class is to draw a line with *'s i guess in the command prompt since it uses System.out to print i was given the function names and the comments that tells me what the function does i wrote the code in the functions … | |
Hi friends i have dell inspiron laptop with i3 core processor..having Oracle 10g as database. i could n't run JDBC programs in my lapy. so many ppl spoke to me that dell lapy doesn't support type1 driver.. So i tried for third party type 4 drivers(OJDBC14.JAR) it is also not … | |
Ok, So I'm amking a game and need walls so you can't walk through walls (This is a top down view game, screenshot [URL="http://turt2live.servebeer.com/game_stuff/walls.png"]here[/URL]), although, my calculation for seeing if you are going to hit a wall slows down the game with the 3 walls I have (I stopped making … | |
Hello all. I got a project which includes many classes.One of them is a class extending JPanel which is used to load an image as a background for my JFrame. Now,there are 2 other classes,instances of which are used to represent people interfering with each other or moving within the … | |
I am using a keylistener and I need to know when the backspace and delete keys are used. Does anyone know how this is done? I have not found anything online. | |
hey there, I am trying to make my first connection to a mysql server with java. I took the following code from another thread: [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Connect { public static Connection ConnectDB() { Connection conn = null; try { String userName = "root"; String password … | |
Hi, I want to make a JLAbel clickable. For example if a user click on the jlabel he is directed to some url like [url]www.google.com[/url]. Any help would be appreciated. Thanks. | |
hey i have a little problem with this app, and i hope somebody can help me. i have to create an application that watch over your appointments. i have the JFrame up and running, but i have some issues with the buttons: when "New appointment" clicks, the data for the … |
The End.