32,204 Topics

Member Avatar for
Member Avatar for boboi haokip

I have a class name string. And a user input is read i.e a message or string. Get the text message(i.e.string) from the user and convert the message into hexadecimal code and binary code. Then message is split into two parts. One is used as message end other one is …

Member Avatar for boboi haokip
0
137
Member Avatar for hearty

hi, I'm a beginner in Java and new to NetBeans. I have a project to do where I have to use NetBeans to write a hotel program. the questions is displayed like this > One of your friends is working behind a room reservation counter helping customers to determine the …

Member Avatar for NormR1
0
133
Member Avatar for Pirouette

Hello everyone. I've a bit of trouble with my code. I'm suppose to create a program that will allow the user to input as many integers as they desire. When the user is done, the program will calculate the alternating sum. The program will then display the equation along with …

Member Avatar for zeroliken
0
4K
Member Avatar for newbie_jar

I hope you guys can help me out... i have a little applet which caused me lot of problems. i'm new to java and i hardly managed to put all the code together, what does the script? here: users visit my website, and from their account they can upgrade a …

Member Avatar for masijade
0
3K
Member Avatar for javaNooblet

Hi All, If I read in from a file and populate an array with its data(all strings), how can I control the way it prints(to the console for example).Right now it just prints a huge long line in the console of all its contents. I figure I will have to …

Member Avatar for stultuske
0
266
Member Avatar for crazymidget01

I am trying to write a program to perform matrix operations. I want input the two matrices from a file. The file has the format: 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 * 0 9 8 7 6 5 4 3 …

Member Avatar for thines01
0
134
Member Avatar for shootingrubber

Hello, I am writing a Tic Tac Toe java program, and it's almost all working; however, I noticed a bug in it recently and I cannot find the source of the problem. Basically the game has a New Game option in the file menu, and the first time it works …

Member Avatar for shootingrubber
0
187
Member Avatar for th3b3n

I have a basic understanding of how to create A(1) check box, and repeating that method over and over again to create more. However, this makes for messy as shit code, plus I don't feel like doing this method 30 times to create the needed 30 check boxes. So I …

Member Avatar for hfx642
0
124
Member Avatar for lbgladson

Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program?

Member Avatar for hfx642
0
86
Member Avatar for JRDJ12

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing …

Member Avatar for stultuske
0
200
Member Avatar for lbgladson

I have the following code where I am trying to put an icon on the redButton but what I have done is not correct and I'm not sure what to do. There is no where in my book that explains how to do this and I keep getting confused looking …

Member Avatar for lbgladson
0
86
Member Avatar for bombay1982

Hi there; I am having problems with using printf method in this simple loop. I am looking for a 3 decimal places in the right one column and a integers in the left. I know how to print this with system.out.println but I dont know how to write it with …

Member Avatar for bombay1982
0
377
Member Avatar for lena1990

hi i have a project and i have database that is written in arabic language when i run my program all iget is small square instead of the arabic character and i have try to solve this problem 3 months ago and i have search the web and i didnot …

Member Avatar for stevanity
0
2K
Member Avatar for lbgladson

I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for Ezzaral
0
5K
Member Avatar for upanotch

I tried to put an image on a JButton and it's messed up: [url]http://imgur.com/ecBOt[/url] code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Polluted extends JFrame implements ActionListener { ImageIcon bg = new ImageIcon("bg.png"); Image bgImage = bg.getImage(); public static void main(String[] args) { new Polluted(); } public …

Member Avatar for NormR1
0
171
Member Avatar for vikasgarg

Hi all I am having a jsp page where I have entered radion button value ,like this:-- <td><input type="radio" name="billType" value="1"/> <font color =blue> Brief Bill</font></td> <td><input type="radio" name="billType" value="2" /> <font color =blue>Detailed Bill</font></td> <td><input type="radio" name="billType" value="3" /> <font color =blue>Itemized bill</font></td></tr> Now I want to get this …

Member Avatar for brynFlew
0
1K
Member Avatar for twazzer

Hi there, I have been asked to import a text file into java, the file contains a series of 1's and 0's which draw a picture. The 1's will be drawn as a dot where as the 0's will be a blank space. I was wondering if anyone could show …

Member Avatar for NormR1
0
221
Member Avatar for programing

[CODE]/** * @(#)TestClassOne.java * * * @aziza meshal * @version 1.00 2011/11/12 */ import java.util.Scanner; public class TestClassOne { public static void main(String [] args) { int size; Scanner input=new Scanner (System.in); System.out.println("plz enter size of array"); size =input.nextInt(); int [] a1 = new int [size]; ClassOne [] a2 = …

Member Avatar for programing
0
80
Member Avatar for titusnainggolan

Hello all, I want to ask you what this code mean. [CODE] import java.io.*; class CopyFile { public static void main(String[] args) throws IOException{ int i; FileReader fin; FileWriter fout; try { fin = new FileReader(args[0]); fout = new FileWriter(args[1]); } catch (FileNotFoundException e) { System.out.println("Error opening output file."); return; …

Member Avatar for JamesCherrill
0
287
Member Avatar for morred

Hello! I'm new to this site and fairly new to Java, I've tried creating a program that takes a file as input and edits specific substrings in said file, compiles without problems but the file remains unchanged. [CODE] import java.io.*; public class Uppg10_OH { static class MinHistoria { private String …

Member Avatar for morred
0
166
Member Avatar for glenak

Hi guys, Is it possible to bind a the column of a table in a database to a jcombobox or jlist? I'm asking, because I'm currently working on a project in java that involves displaying data from a database table in a list and combobox and I'm trying to find …

Member Avatar for stevanity
0
97
Member Avatar for Jessurider

can we find a particular image whether exiting or not within a video file.......... i.e imagine i've a picture of a particular person and a video file....and i've to find whether that person in the picture exits or not somewhere within that video file...........

Member Avatar for Jessurider
0
93
Member Avatar for anand01

hi all i tried one quiz in that i got question [CODE]Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 5. // insert code here 6. } Which methods, inserted independently at line 5, will compile? …

Member Avatar for anand01
0
183
Member Avatar for abhishekarora

hi am making project..i have entered the record in 8 columns of table using jdbc and 9th column is automatically icremented as primary..so after putting the record and executin query i want to check primary no which i get..i want to show it in text box..what can be the query...?? …

Member Avatar for ~s.o.s~
0
95
Member Avatar for asif49

Is there a way to map multiple values to the same 'person' without creating objects for them each time. I.E I have a class called Person and Ill need to continuously add to it information like the type of car this person owns (more than one car). I want to …

Member Avatar for NormR1
-1
119
Member Avatar for Daigan

[CODE]private double convertLiquid (double none2 ,char unit2, char amount2) { if (unit == 1) return (amount * 33.8140227); else if (unit == 2) return (amount * 0.001); if (unit == 3) return (amount * 1000); if (unit == 4) return (amount * 0.00852167911); if (unit == 5) return (amount * …

Member Avatar for javaNooblet
0
136
Member Avatar for jhamill

Hey so for my lab we were given this code and told to fix it so that each candidate's information is printed on the appropriately colored background. The voting space for sarah is supposed to be on a green background, and the voting space for joe is supposed to be …

Member Avatar for NormR1
0
194
Member Avatar for vaironl

I have a scanner which needs to read a recipe text file, specifically line 3. I want to read all of the words in that line using a delimiter (which I already know how to use). Though I don't know how to make the scanner stop before going to the …

Member Avatar for Aviras
0
161
Member Avatar for oddsocks

Hello, I am on an introduction to software development module. I need help creating an array, it doesn't have to be hugely complex only basic as it is at introductory level, but still I am finding it difficult, [U]please can someone help it will be gratefully appreciated.[/U] [B]This is the …

Member Avatar for javaNooblet
0
103
Member Avatar for kyriacos1986

Good morning to everyone. I have been asked to derive a SortedLinkedList from the java.util.LinkedList which will sort members of a gym based on their last names. In addition will calculate the BMI of each member, the members will be added from a text file. Here is my code. 1.Class …

Member Avatar for JamesCherrill
0
178

The End.