35,618 Topics
![]() | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
sorry, i'm a newbie of java. for example, public static myObj createObj(String nameFormUser){ myClass nameFromUser = new myClass(); return nameFromUser; } can it possible ? | |
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 … | |
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 … | |
# **program editor** # how to create a **program editor** for compiling and executing java programs?i need the codings... | |
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 … | |
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 … | |
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: | |
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!!!! | |
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 … | |
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, … | |
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 … | |
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 … | |
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[] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi all, How could we validate that given string should only contains alphabetic characters, pls share some ideas, thanks in advance | |
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 … | |
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 … | |
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 … |
The End.