35,618 Topics

Member Avatar for
Member Avatar for collinsislee

OK here is my code to print all prime numbers less than 100 and also print the first 36 numbers in the fibonacci series. I want to change it so that the fibonacci prints 9 numbers per line and the prime numbers print in 5 per line. Im new to …

Member Avatar for JamesCherrill
0
367
Member Avatar for 47pirates

HOw can i convert the String "2012-07-30" to Date object with same format 2012-07-30 which is date not a string. I've tried but i get the result in string. plz help

Member Avatar for Taywin
0
189
Member Avatar for rithish

in java we use import javax.swing when we want to use frame and panel we write like this class frame extends jframe but in c++ we use <iostream.h> and <conio.h> where we use cin and cout from these libraray functions but we dont inherit anything .we use normally we dont …

Member Avatar for Taywin
0
151
Member Avatar for abbelylee

I want to be able to read data from a csv file (comma seperated,tab seperated or space seperated) and pass the data into an array.my intentions are to combine four classes. such as a class for the data model,file reader, driver and textui. i can handle the textui and the …

Member Avatar for NormR1
0
156
Member Avatar for phil.robison.5

I need some help with my code for my bulls and cows game... the requirements for the program are below: To start your gaming career, you have decided to write a math game. You want to create the following Menu: Bulls and Cows --------------------------------- 1. Play new game - New …

Member Avatar for NormR1
0
638
Member Avatar for OsamaJutt

Hi, i am new here and i want an help in add the actionListener to the component of JCombo Box. Like there is Combo Box in Which there are components like name of color. When i click any component, for example i click Green color the background turns into Green. …

Member Avatar for JamesCherrill
0
175
Member Avatar for aratnon

sorry, i'm a newbie of java. for example, public static myObj createObj(String nameFormUser){ myClass nameFromUser = new myClass(); return nameFromUser; } can it possible ?

Member Avatar for Taywin
0
628
Member Avatar for esy928

Greetings! Currently, I'm hitting a road block on a task that I need to perform. My goal is to hash my source code and check if the code has been changed during runtime. if it has been modified, it shouldn't be allowed to run. My question is how do i …

Member Avatar for esy928
0
144
Member Avatar for iThaos

Hi everyone, I'm trying to make a little applet that reads text files. I was planning to load some data into a class and use it later. However, I seem to having a few problems with it. // DataSet.java package com.someone.something; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class DataSet …

Member Avatar for iThaos
0
422
Member Avatar for danny.vin

# **program editor** # how to create a **program editor** for compiling and executing java programs?i need the codings...

Member Avatar for stultuske
0
202
Member Avatar for riahc3

Hey I want to make a multithreaded and multiuser web service in Java. Where do I even start looking? Currently I have a web service that is one user and one thread. I think Ill problably have to completely rewrite it from almost scratch so.... Where can I see some …

Member Avatar for JamesCherrill
0
1K
Member Avatar for khaled_jawaher

i am trying to run a jar file i created from net beans when i built my new project.it is giving me error cant launch application i tried everything.I am using window7,i opened the command prompt and put assoc jarfile ftype jarfile="C:\Program Files\Java\jdk1.6.0_01\bin" "%1" %* and tryied to run it …

Member Avatar for stultuske
0
199
Member Avatar for cor.vandijk.779

Theinput in a JTextField must be used in the variable Color color. input = YELLOW must change variable color in Color.YELLOW. My attempt does not work:

Member Avatar for JamesCherrill
0
237
Member Avatar for Kashyap2005

Hey guys i want to display images that are retrieved from DB in grid form!!!!!I am able to display them in listform!!!!!Please help me out!!!!

0
52
Member Avatar for rajeshgoblet

hello i am working on a c,c++,java tutorial website, & i want to insert lots of source code example in it. I am doing this using <span> & CSS classes. I have seen some online code highlighter. i want to make one for my site. And is there any other …

Member Avatar for Dani
0
114
Member Avatar for lesliebielski

I am new to Java (taking it to get warmed up for C and C+++ as I am very rusty.) I am writing a class that is suppose run the file DLTest.java(written by the instructor) that is suppose to keep track of two licenses with name and tickets. DrivingLicense, ().addTicket, …

Member Avatar for JamesCherrill
0
238
Member Avatar for webmania_bt

Dear all, I am about to implement a user feedback page, by using the smtp server of my university. When I try to send a form, an error message is received as below: [COLOR="Red"]Could not connect to SMTP host: smtp-auth.bris.ac.uk, port: 587[/COLOR] I tested with telnet this smtp address, along …

Member Avatar for kinthada
0
878
Member Avatar for GlenRogers

Ok, I have a website built for a friend(simple/static). I want to add an amdin panel for him, so he can log in, put pictures into the gallery, change or update his stocklist and change or update his news section with special offer etc (he owns a reptile shop). I …

Member Avatar for stultuske
0
124
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Member Avatar for stultuske
0
230
Member Avatar for njbst18

I'm new to creating jar files. I'm using JCreator and have set up the jar creation and the manifest using winrar and txt to get it to run. However if I run the .jar from anywhere other than the programs root directory all the images vanish. I have been looking …

Member Avatar for NormR1
0
749
Member Avatar for starkar89

i am developing mobile web app for conducting survey in html5. i need to save user responses in file preferably in csv format. How can do it. i am stuck with storing part.......... please please help me. I cannot use activex for dat purpose coz app needs to work on …

Member Avatar for Walahh
0
104
Member Avatar for Ricky116

Hello, I am trying to make a simple movie-managing application that allows the user to log into a particular username out of a list of usernames in a text file, and simply view information about movies kept in a text file. This is my first project, from which I would …

0
92
Member Avatar for osiron

Hey guys, I'm trying to create a iterative heapsort program and for some reason when I input 10 random numbers into the array, only 9 numbers are sorted. Here is an example of my input/output: Input: 45 15 2 44 30 83 30 86 66 49 // 10 random numbers …

Member Avatar for Taywin
0
143
Member Avatar for kovidd

i have recently started learning java .... i completed "head first java" recently ....it is just an intro to java . now i am looking to learn other aspects of java so could you tell me which book to read next . Or should i jump straight into a example …

Member Avatar for JamesCherrill
0
243
Member Avatar for Ashenvale

hi, I originally made a 1 dimensional array but then modified it into 2 dim. Problem is, I used percentage to determine who has the most number of votes but variable newPresident only output Estrada J. which belong to array candidate[0]. When I tried printing the elements in percentage[], only …

Member Avatar for Ashenvale
0
369
Member Avatar for TarkiB

Hi there, I'm having trouble with floats in Java. My program accepts a number in the form of a float. The number typically has two decimals (but not always). It seems to work fine in most cases. For example, I could put in 54.67, and that number would be passed …

Member Avatar for JamesCherrill
0
438
Member Avatar for anand01

Hi all, How could we validate that given string should only contains alphabetic characters, pls share some ideas, thanks in advance

Member Avatar for anand01
0
107
Member Avatar for anandcta123

Dear all, I am working on MDI window JDesktopPane and JFrame. I need to play video in fullscreen mode. I know fulscreen exclusive mode, but this is not the one I wanted. I am trying this by using setUndecorated ion JFrame to screen size, but this will leave uncover MAC …

0
47
Member Avatar for GlenRogers

I'm going to build my wife a home banking application so she can easily keep track of our finances. I want it so that it you can input every credit to our bank account(wages etc). For each item of credit there will be 3 seperate input fields: date, amount, source(where …

Member Avatar for JamesCherrill
0
148
Member Avatar for gedas

Hi Guys, I found a cool monitoring tool JConsole, however i am not sure how i could use it for my own projects. Could someone advise what needs to be added to my project so jconsole can monitore it. p.s i am using a Jboss server for my project Any …

0
55

The End.