35,618 Topics

Member Avatar for
Member Avatar for rahul pareek
Member Avatar for LastMitch
0
75
Member Avatar for zdneth

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

Member Avatar for ~s.o.s~
0
184
Member Avatar for VengefulToast

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 …

Member Avatar for stultuske
0
157
Member Avatar for alavolacoder

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 …

Member Avatar for softswing
0
176
Member Avatar for Violet_82

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

Member Avatar for Violet_82
0
478
Member Avatar for thing2

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 …

0
175
Member Avatar for zdneth

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

Member Avatar for peter_budo
0
460
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 hazzag1995
0
379
Member Avatar for scippi

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 …

Member Avatar for stultuske
0
2K
Member Avatar for scippi

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

Member Avatar for henock
0
409
Member Avatar for darylglenng

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 …

Member Avatar for M4trixSh4d0w
0
338
Member Avatar for darylglenng

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

Member Avatar for M4trixSh4d0w
0
332
Member Avatar for Fernando_1
Member Avatar for RozenKristal

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 …

Member Avatar for RozenKristal
0
297
Member Avatar for DevilDog22

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 …

Member Avatar for DevilDog22
0
114
Member Avatar for toldav

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 …

Member Avatar for tux4life
0
333
Member Avatar for ladybirdchance

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

Member Avatar for ladybirdchance
0
177
Member Avatar for fonzi

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 …

Member Avatar for fonzi
0
266
Member Avatar for lena1990

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

Member Avatar for peter_budo
0
208
Member Avatar for hwoarang69

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 …

Member Avatar for bguild
0
257
Member Avatar for ms061210

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 …

Member Avatar for ms061210
0
188
Member Avatar for ChevaneHeadChefCooke

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

Member Avatar for tux4life
0
441
Member Avatar for anisha.silva

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 …

Member Avatar for anisha.silva
0
555
Member Avatar for hwoarang69

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 …

Member Avatar for hwoarang69
0
145
Member Avatar for shibu2all

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 …

Member Avatar for shibu2all
0
335
Member Avatar for shammi24

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

Member Avatar for JamesCherrill
0
79
Member Avatar for hwoarang69

i need help with simple tile map. i have 2d array as map. so i want to replce numbers in array with rect's. 0 = green rect 1 = red rect 2 = black rect and i want it so that the all tile are same size. when i run …

Member Avatar for hwoarang69
0
259
Member Avatar for Arjun_Sarankulu

I have created login application using spring in my local machine using Apache + Eclipse. I exported WAR of the same without setting the target server as i am deploying the same on sun web server. Application successfully deployed on sun web server. Successfully opens welcome page when click on …

Member Avatar for Arjun_Sarankulu
0
256
Member Avatar for Start4me

I want to create a method that is meant to protect against entering a wrong value for gender. The method **fineGender** below, will return true if the correct gender is entered and false otherwise. // postcondition: fineGender returns true if argument g equals M, m, F or f // and …

Member Avatar for andreas.bjorn
0
328
Member Avatar for anisha.silva

hi i want to add two dropdown boxes one for the make of the vehicle and one for the model of the vehicle. first the user need to select a make of the vehicle and then when he selects it only the models relevent to the make should display in …

Member Avatar for anisha.silva
0
193

The End.