32,199 Topics
| |
Hello, So I am working on a programming assignment that plays a two player blackjack game. I have pretty much all the functionality of the game worked out. Everything was working correctly when I the cards where drawn by my paintComponent() method. However, as soon as I loaded .jpg card … | |
I am the student of computer systems engineering... i have to submit my proposal in 1 month for my final year project. so can any one suggest some good java based final year projects for me ? Plz tell the ideas as much as u can.. and reply as soon … | |
why cant i donwload eclipse?? ive been repeating and repeating on the download of eclipse... but cant seem to work.. | |
Here is my code for my program. import javax.swing.*; import java.awt.event.*; import java.text.DecimalFormat; public class SalesTax extends JFrame { private JPanel panel; // A panel to hold everything private JTextField totalSales; // To get total sales private JButton calcButton; // Calculates everything // Constants for tax rates private final double … | |
Generally people sit in front of computers for a long time which results in eye strain. We indeed forget to take a break. So here is a good freeware called FADETOP which reminds you to take a break after every 15 minutes. However you can change the default time. You … | |
I want to ask some pieces of advice on where should i start once i have think of a project. what are some basic things or steps you can advice..thanks | |
Okay, so it's been awhile since I've posted on here, but I am having trouble figuring this problem out. So, students need to be assigned randomly to experiments. Experiment 1 has 5 participants, 2 has 10 participants, and 3 has 20 partcipants. Every iteration through the loop, it asks for … | |
I have completed a chat messenger with java socket programming. It's run on localhost, so clients can locate it. If i want to run the server side part of it on a web server, then what i should do? how could the client programs will find the ip and connect … | |
HI all, I have just come across this: `System.out.printf("Student %2d: %3d\n");` What does that ":" mean? I assume it is a kind of separator becasue that line prints something like this: `Student 1: 87` thanks | |
Hello I modified tutorial code found at http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android?fid=1592519&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&fr=1#xx0xx to create an assignment list app, and when I click modify, delete, or cancel it force closes. Here is my DatabaseHelper.java code: public class DatabaseHelper extends SQLiteOpenHelper { static final String dbName="assignDB"; static final String employeeTable="Assignments"; static final String colID="assignID"; static final … | |
Can i have some sample projects in java using netbeans? With source code of course because i need it for our project. I just need it for a guide bcoz i'm not exactly sure where to start. Thankx!!! | |
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 … | |
This is the block of data I have to work with: 5 5 5 6 5 8 9 5 6 8 good, very good, excellent, good 7 7 8 7 6 7 8 8 9 7 very good, Good, excellent, very good 8 7 6 7 8 7 5 6 … | |
Hi everyone, I am using this method to read in a collection of ints and strings then converting the strings to numbers using the switch statement(as stated by my lecturer) and save it back into an array for further processing. However, everytime it gets to the line studentResponses[row][column] = scanner2.nextInt(); … | |
package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void … | |
>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int … | |
| |
I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree … | |
First I want to say hey, new here, hopefully this places is welcoming! Second, I am in a java class and it is my first class and my only experience with programming. So the questions I will be asking will be based off of my assignments. What I want to … | |
I need help to figure it out how to keep track of how many guesses the user is making and NOT allow the user to guess any value thet had already tried. tHANK YOU import java.util.Random; import java.util.Scanner; public class GuessingRand { public static void main(String[] args) { Random rand … | |
I'm currently working on a college Hangman project to build a GUI to ply an external hangman game, but I keep recieving a NullPointerException error. Here is the code for the GUI import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Color; import java.awt.Image; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Font; import javax.swing.JButton; … | |
Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated. @Override public String indentedToString(int level) { String answer = " "; answer = super.indentedToString(level); answer += "Value " + this.list.toString() + "\n"; for(int i … | |
hi all i want to send html file from pc to android phone if any body have an idea of how to do that i will be greatful for help?? thanxs in advance | |
it have 3 classes. main class = run every thing player class = create player and create his moves level class = render map and player when i run this code below it render a map and two players. 1st player in redering in main when can move. if user … | |
Hello guys, I need some advice/opinions. We are task to create a game in socket programming. We can choose from Java, C, c+, shelland php. Which language is the best to create socket programming for beginners. ? We have a litte knowledge with the given languages, but we don't have … | |
import java.util.Scanner; public class Name { String lastName; String firstName; Scanner scan = new Scanner(System.in); public Name(String LastName, String FirstName) { lastName = LastName; firstName =FirstName; }; public String getFirstName() { return firstName; } public void setFirstName (String FirstName) { firstName = FirstName; } public String getLastName() { return lastName; … | |
hi what i wan to do is to get the customer ID from the glassfisn database and displaindey it in a drop down box in a jsp page. in the index.jsp page how to i call the servlet so that the the servlet would load the jsp page? i have … | |
i have a question on how to extends classes. i have three classes main, aaa, bbb classes. i want to draw something in bbb class and print in main. for ex main <-> aaa <-> bbb but nothing is being print at output. if i draw something in main, or … | |
Hi, I don't know if this question makes any sense, but i need to get some answers. I am working on a project, where i am using a file encrytion/decrytion program.Now i have this .java program which is working perfectly from the command prompt and encryting/decryting files Now , the … | |
i need a prog in java by which if u type any num u can get the corresponding alphabet in circular manner,eg:1=a,2=b.....26=z,27=a...,29- c.so on,plz do help...tnks in advance |
The End.