32,199 Topics
| |
Hi guys. I am getting the error: LoanProgram.java:17: variable payment might not have been initialized payment = getPayment (amount, rate, years, months, payment); I am stumped, and the lab is due tomorrow. If anyone could help me out I would greatly appreciate it. :) I'll put an asterisk on the … | |
can anyone tell me how to extract bmp picture frames from a a video file..... and also the reverse process i.e bmp files back to video files...... when i googled i got several stuffs regarding extraction of image files from video file using c#, is there any method in java..... | |
i want to make a menubar similar to that of MS OFfice. I have downloaded some Executable JAR files that tells me they can help me, but as I run the codes, nothing happens. Can you please teach me how make a ribbon menu bar.? or give me a link … | |
Hi, I was preparing for SCJP 1.6 and i have the following snippet of code. [CODE]package com.self.trials3; public class Animal { public void Animal(){ System.out.println("Obviously Works"); } Animal(){ //System.out.println("Constructor"); //super();use super or this() as first line in your cons to call other //cons. this("Adarsh"); } Animal(String AnimalName){ //System.out.println("AnimalName >> "+ … | |
Hi!(: Sorry, I'm totally new and have no real idea about what I'm supposed to tell you. I just really need some help on my java homework so anything would be much appreciated. (: I feel like I'm already asking for so much.. so I'm really sorry, but can someone … | |
i have a game that i made [url]www.thenewedinburg.com/obstacles.html[/url] at the end i would like to ask the user to input his name and that name to be saved in a .txt file that is stored in the webpage like for example [url]www.thenewedinburg.com/savename.txt[/url] so that any user that plays and gets … | |
I realize this will very likely be a short thread, but it is a question that has been eating at me for a while. I have just started taking a Java class (basic introduction) and so far I am loving it. Primarily I am a web programmer, so the only … | |
I'm having a severe brain drain moment and can't figure out how to validate user input? I need to make sure that it is an int and it is greater than 2. And I need it to loop until the user meets those requirements. I tried a try-catch block but … | |
Hey guys, I'm working on an entry level java programming assignment and I'm running into some trouble. I've attached 3 java files and will quote the problem below. If anyone can point me into the right direction I would really appreciate it. Thanks! I'm fairly sure the code needs to … | |
I am working on part five of the Farmers Market program and am ready to pull my hair out. Not getting much help from the instructor either. here is the code [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. … | |
can anyone tell me how to read and edit video or image file properties through java | |
I keep getting a stackOverflow error in my quickSort and I can not figure out why. Any help would be greatly appreciated!! [CODE] private static void quickSortRecPriv(int[] arr, int first, int last, int ps) { int pivot = arr[first]; int left = first; int right = last; if (arr == … | |
Design a cashier change maker that will take as input: a floating point value. Value: "change due" and will convert it to proper currency (from $20 down to pennies) amounts to be handed as change to the customer i am not sure how to use the rounding correctly every time … | |
I am trying out something new and I am wondering if this is valid and is not working because of some other code glitch. Graphics class: [CODE]import java.awt.*; import javax.swing.JPanel; public class Drawing extends JPanel{ KeyCommands kc = new KeyCommands (); public void startGraphics (){ System.out.println ("Adding KeyListener"); addKeyListener (kc); … | |
is possible to work of return statement with Math Class? eg, [CODE]return Math.pow(2,2);[/CODE] | |
Hello I have a problem how to make custom defined text area it's similar to text area which you can create in Photoshop while you wan't type any text. Is it possible to do it in swing ? | |
Hello good day to all... is there anyone can help or suggest me how my code work successfully. Actually the code was working well, but i wanted to change it`s content to GUI form. the program description was the user must input a word/String and shuffle/scramble the word that the … | |
So my title was meant to be array not loop I need to create an application that will generate random spots so far my work is this [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Random; public class Shape{ private int x; private int y; private int width; private … | |
Okay so I have read the guidelines and don't believe this post is against the rules or against the rules for asking for help because I have put in an effort and I'm around 70 percent in testing the files. I just need help with this basic Java code to … | |
This is the assignment: TIP CALCULATOR Create a class called TipCalculator which calculates a tip amount based on a grade of service received. calculateTip method Create a method named calculateTip which accepts two incoming parameters: a double and a String. The first parameter (the double) contains the bill total, and … | |
hy! i am designing game in JAVA as my university project, i want to make myself unique by doing something different ---soo i though of making iphone game that runs java...I designed the iphone app, which is just a icon and few other things...when u click nothing happens but i … | |
Hello, I have recently joined a orgainization as a [B]Java Engineer Trainee([/B]0 Years of Experience) and working on a project(80% ABAP people are working on project) in mainteance from last 2-3 Years. The Work in the project is of basically in ABAP and [B]Core Java[/B] (Only Basic Java code is … | |
| [COLOR="gray"][/COLOR]1. your-netid_hw5_1.java : Liang page 253, programming exercise 7.6. (Multiplying two matrices) Write a method to multiply two matrices. The header of the method is as follows: public static double[][] multiplyMatrix(double[][] a, double[][] b) To multiply matrix a by matrix b, the number of columns in a must be the … |
[TEXT]I'm trying to write an application that will input five numbers from the user. The program should print out the largest and smallest numbers. It should print how many of the numbers are two digit and how many of the numbers are three digit. It should also print out the … | |
as we know the code of scanner is like this, [CODE] ... Scanner scan = new Scanner(System.in); System.out.print("something is something: "); [COLOR="Red"][type] [variable name] = scan.next();[/COLOR]... [/CODE] so here is my problem, how can we scan char type? | |
Is there an easy to use tool that OPs could use to find variable's whose class level definitions are Shadowed by local definitions of variables with the same name. I see that problem a couple of times a week. Do the standard IDEs have options that would warn about the … | |
Hi, Am setting a value in request objet like this: [icode]request.setAtttribute("Hello","true");[/icode] Now i am redirecting to the action class: [icode]new RedirectingActionForward(request, url.getInwardRedirectURL());[/icode] In the redirected action class, am using this to retrieve value from request object: [icode]String example = request.getAttribute("hello").toString();[/icode] Am getting nullpointerexception.. Could anyone help me on this..!! | |
I am trying to build an animation. It just has two pictures or scenes. I want it to start at one picture and end at another. When I run my project all I see is a blank screen. I have checked and made sure that my Image paths are correct. … | |
Hi, I am new to Java and just learning GUI's. I was wondering if someone could help me with a project? I am trying to create a questionnaire. It will was the user a question and have radio button answers. After the answer is selected, they will hit the "next" … | |
An emirp (prime spelled backwards) is a prime number that results in a different prime when its digits are reversed.[1] This definition excludes the related palindromic primes. Emirps are also called reversible primes. this are the list of emirps [url]http://oeis.org/A006567/list[/url] [CODE] public class EmirpProgram { public static void main(String args[]){ … |
The End.