32,204 Topics
| |
So im working on a public and private case and i posted ealier with issues, but i thought i had most of them fixed and turns out fixing those just opened up more problems... any help is appreciated thank you! ( I am very new to using java...) /** * … | |
One large chemical company sells its chemical equipment at the following rates: Equipment Code Description Price RQ1 Reactor 0.5KL GMP $1500 RQ2 Reactor 20 KL Non GMP $3000 The company pays its salespeople on a commission basis. The salespersons receive the basic pay of $ 2000 per month plus a … | |
My problem is with a **Polymorphic** method , getSalary (which should be of type double. The problem is that the salary in this case depends on the average mark of a student and thus I felt the need for an **If Statement** because of the 2 conditions. However java does … | |
Hi, Which os is best for java and oracle programming.. suggest me. | |
I have been working on this code for days now and I am down to one error:error: class, interface, or enum expected showing at line 56, I have no idea why it won't work... any suggestions? thanks! import java.util.*; public class Pet { // This gives the user a field … | |
Ok so I do not know where this post belongs, but apparently, Java is the language that is used for Arduino boards...I thought that it would be C. I have no idea where to begin, but I am really interested in tinkering with Arduino boards. Like REALLY. So I need … | |
Hey guys I'm having problems figuring out how to write my driver class for my Array class. My questions 1.How do I make the array in my Array class reference the array in my Driver class? 2.How do I pass my class methods from my Array class to my Driver … | |
Hey guys looking for some help with my ArrayTester class... The array is supposed to 1.create a 20 element int array and populates it with random elements in the range 20 through 65 (both inclusive). -I Believe I have already done this. 2.Use the java.util.Random class with a seed of … | |
Hi! So i'm trying to code a program that works like an ATM machine. You 'insert a card' and then enter your pin. once the program has verified your pin, you may continue on to the next steps which include making a deposit, withdraw, printing a monthly statement and checking … | |
I'm writing a class to represent a flight. The only error I'm getting is on line 97. Flight.java:97: error: missing return statement /** Class Flight represents a plane at an airline Author: Anna Mae Decker E-mail address: adecker0033@kctcs.edu Last changed: 02/10/13 Assignment1 */ public class Flight { /* * declare … | |
I have done RND on Spring Application development on Apache Server at home which works fine. Now we are about to start the development of web application using Spring in my company. Is Spring deployment is feasable with **sun java system web server** And which tool to prefer for development … | |
Im trying to call the method "public void insertCard(int p)" within the same class into the method " public void deposit (double amount) " My code for both methods is displayed below. the objective would be to have the deposit method return the last print statement if the card is … | |
Hi, Someone please guide me to get the right sintax to print the numbers of above and below arrays. Right now it print the totals quantity, but what I really want is print each number for above an below array. Thanks. public class RandomArray { public static void main(String[] args) … | |
Just a simple Jython code to test drawing on the canvas. | |
hi, i am trying to run the java EE application and when i clean and build the EJB and the web compoenent i get an error as below > Failed to execute goal on project account-web: Could not resolve dependencies for project edu.depaul.cdm.se:account-web:war:2.0.0: Failed to collect dependencies for [javax:javaee-web-api:jar:6.0 (provided), … | |
I'm trying to use an array to print out 6 numbers out of 42 since it's a lotto code Here's the question the lecturer wants me to do: Write a Java program to achieve the following: ï‚· Declare an array of type int of size 6 ï‚· Randomly generate your … | |
Hey guys, i am developing an android app using Java, using eclipse on a windows PC. The building of the app started off very well, and we managed to get a working prototype working on a android phone using the USB debugging option. I have come across a big problem … | |
I have a mysql database and Java application to access it. Now I need to access that programme via web.what can I do ? What are the new Java technology that I can use to get work done?I'm newbie to java and web. Please help me | |
I want to store '\092' (which is backslash ASCII code) in a char variable but Java does not allow me. Does anyone know what the problem is and how I should store that? | |
systemFolder.targetFolders.dir=LoginInfo.getTargetFolderSystemDir() systemFolder.ser.dir=LoginInfo.getSystemFolderSystemDir() bookMarkDB.name=bookMarkDB.xml bookMarkDB.dir=bookMarkDB bookMarkDB.home=$(ViewResources.systemFolder.targetFolders.dir)+File.separator+$(ViewResources.bookMarkDB.dir)+File.separator+$(ViewResources.bookMarkDB.name); is it possible to concat bookMarkDB.home and bookMarkDB.name ? is the +File.separator going to work? thanks | |
Hello. Could someone translate this? I have yet to effectively use these expressions. sometimes I use the if statement to evaluate if a var has a certain value. most of the times it works. is the ternary expression used to handle other possibilities that could come up? 1 m != … | |
Hi I wonder if somebody can help me with this. This programs simulates throwing a die 20 times: import java.util.Random; // program uses class Random public class RandomIntegers { public static void main( String[] args ) { Random randomNumbers = new Random(); // random number generator int face; // stores … | |
Hi .. I need topic for my java project and I need to use inheritance in the project I'm thinking of book store or employees , nut how can I use inheritance in book store or employees what class will I inherit from | |
How do you insert image thorugh JLabel? Thanks. | |
Hello, I am writing a chat server application in eclipse ide how i wish to change the jar default image icon but all attempt end either in error or the line of code running with change the icon. here is where i put the code. setIconImage(new ImageIcon(ClassLoader.getSystemResource("chatbutton.jpg")).getImage()); and here is … | |
Hi all.. I m a begginer in java... i want to write a series like 1 to the power 2, 2 to the power 3 as so on... i can print its value only line 1 , 8 , 81... but i cant write the series where all to the … | |
Hi guys. First of all, I am aware that there is a somewhat similar thread over here. However, it was never really answered and the code given was obscure (I don't like copying stuff anyway) Either way... I want to balance a chemical equation. However, I don't need help on … | |
This keeps popping up http://sidetrack1.deviantart.com/art/Javadocs-Not-Generated-353650496?ga_submit_new=10%253A1360562461 Here's the code for the things that need javadocs import java.util.Scanner; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author ufe-c122-pc05 */ public class Lab2 { /** * @param args the … | |
*Code Complete* is a programming book by Steve McConnell which includes a second about how to choose a language for your project. It very briefly examines a wide variety of languages: Ada, Assembly, C, C++, C#, Cobol, Fortran, Java, JavaScript, PHP, Perl, Python, Smalltalk, SQL, and Visual Basic. It also … | |
Hello. I'm hoping someone will be willing to help me out. I'm pretty much done except for one part I've been scratching my head over. I'm sure this headache I have is not helping. Below are the instructions and the code for my problem area. Output the sum of all … |
The End.