32,199 Topics
| |
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 … | |
I tried to make a try-catch block in a program but when an exception occurs, it doesn't do what I intended int num = 0; boolean noException; Scanner keyboard = new Scanner(System.in); while (true) { noException = true; System.out.print("Enter a number or 0 to exit: "); try { num = … | |
anyone know how to split the text in txt file i have this... try { String newaccount = NewAccount.getText(); String newaccusername = NewAccUsername.getText(); String newaccpassword = NewAccPassword.getText(); FileWriter filewriter = new FileWriter(newaccount + ".txt"); BufferedWriter out = new BufferedWriter(filewriter); out.write(newaccpassword); out.write(newaccusername); //out.write(newAccount); out.close(); LabelInfo.setText("Account Registered !"); } catch (Exception ex) … | |
Every time when trying to build gives me this "The project does not have a build script." what to do ??? :/ | |
Please help. I have an illegal start of expression at line 65 where it says "public static void p(Object...args)" /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.*; /** * * @author Minh */ public class Dna { … | |
| Does anyone have a sample fully working code, that demonstrates how to change the mouse cursor picture when moved over a certain area in a program? [edit] just to clarify change it to a mouse cursor I designed myself[/edit] ThanQ |
The End.