32,199 Topics

Member Avatar for
Member Avatar for Cameronsmith63

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 …

Member Avatar for Cameronsmith63
0
184
Member Avatar for awfootball7

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 …

Member Avatar for stultuske
0
737
Member Avatar for awfootball7

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 …

Member Avatar for stultuske
0
326
Member Avatar for Lindsey1211

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 …

Member Avatar for stultuske
0
224
Member Avatar for adecker0033

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 …

Member Avatar for stultuske
0
205
Member Avatar for Arjun_Sarankulu

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 …

0
78
Member Avatar for Lindsey1211

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 …

Member Avatar for csstu
0
262
Member Avatar for toldav

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) …

Member Avatar for toldav
0
145
Member Avatar for vegaseat
3
599
Member Avatar for anisha.silva

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), …

0
140
Member Avatar for michelleruth

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 …

Member Avatar for radhakrishna.p
0
24K
Member Avatar for hazzag1995

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 …

Member Avatar for peter_budo
0
455
Member Avatar for cham1829

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

Member Avatar for stultuske
0
65
Member Avatar for hg_fs2002

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?

Member Avatar for mvmalderen
0
127
Member Avatar for cisumma

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

0
105
Member Avatar for cisumma

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 != …

Member Avatar for deceptikon
0
159
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
525
Member Avatar for sk8ergirl

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

Member Avatar for ruchi18
1
119
Member Avatar for Petranilla
Member Avatar for emmas4impact

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 …

Member Avatar for softswing
0
334
Member Avatar for pri.chakraborty

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 …

Member Avatar for radhakrishna.p
0
4K
Member Avatar for requimrar

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 …

Member Avatar for bguild
0
1K
Member Avatar for xavier.diazsanchez

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 …

Member Avatar for stultuske
0
115
Member Avatar for bguild

*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 …

Member Avatar for <M/>
1
228
Member Avatar for djcrab

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 …

Member Avatar for djcrab
0
246
Member Avatar for supertechnewbie

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 = …

Member Avatar for mvmalderen
0
146
Member Avatar for StefanRafa0

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) …

Member Avatar for stultuske
0
202
Member Avatar for StefanRafa0

Every time when trying to build gives me this "The project does not have a build script." what to do ??? :/

Member Avatar for stultuske
0
69
Member Avatar for gsfdg

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 { …

Member Avatar for stultuske
0
230
Member Avatar for iamthwee

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

Member Avatar for maquaree
0
595

The End.