35,618 Topics

Member Avatar for
Member Avatar for SurrounD

Hey guys, Im new to Java and i am trying to wrap my head around arrays and what not. What i am trying to do is create an array for a puzzle which is 4x4 and has the numbers 1 to 16 so far i have got this [code]public class …

Member Avatar for SurrounD
1
143
Member Avatar for jimmylee7706

I'm trying to make a simple text game just for fun. Java is a language I want to learn so making a game is a great start. I'm having problem with my if statement however. This is an example of whats happening. This is only a few hours into the …

Member Avatar for jimmylee7706
0
235
Member Avatar for DarkPheonix

[CODE] import java.io.*; class BinaryCounter{ private String b; private int binary; public String binaryConverter(int binary){ this.binary = binary; String temp; temp = Integer.toBinaryString(binary); return temp; } public String INCR(String b){ this.b = b; char[] temp1 = new char[b.length()]; temp1 = b.toCharArray(); char[] temp2 = new char[temp1.length+1]; for(int h = 0 …

Member Avatar for DarkPheonix
0
893
Member Avatar for pudgeeboy

hi guys got a question here how can you display output 1 to 35 in a variable declared with the value of 1 (a=1; with the condition of 1>100 ??? in a for loop structure sorry if i dont make sense guys.. im kinda new to this thing

Member Avatar for Anuradha Mandal
0
156
Member Avatar for singh_soorma94

Hi, I made this thread for our groups assignment. We are suppose to get 3 program codes, at least 250 lines each, from anyone that created one. As soon as we retrieve them, we are supposed to evaluate them and find out what type of things they used and how …

Member Avatar for sirlink99
0
160
Member Avatar for janice91

Greetings to all experts, I am a newbie here in Java OOP and is struggling in practicing how to code a OO program, using Java. I hope anyone can give me a head start please. Here is the requirement which i am suppose to complete: [B]Input[/B] The first line of …

Member Avatar for JeffGrigg
0
2K
Member Avatar for janice91

Greetings to all experts, I am a newbie here in Java OOP and is struggling in practicing how to code a OO program, using Java. I hope anyone can give me a head start to enable me to write the main method to test the 2 methods. Here's the question: …

Member Avatar for JeffGrigg
0
197
Member Avatar for Nathan_11
Member Avatar for Shanti C

Hello, i have used ireport tool for creating jrxml template for creating chart(XYLine chart). and i used this jrxml file in java code to create chart. Here i passed csv file as data source. Now i can freely change color,title,subtitle,font ect from java code . what i want is how …

Member Avatar for vimukthirandika
0
900
Member Avatar for vijiraghs

I am using netbeans to do "Library book search system"in EJB. I have a html page in which I want to display the list of books that match with the entered keyword. I get the keyword from the user and send it to a servlet through an ajax funtion which …

Member Avatar for vijiraghs
0
141
Member Avatar for sha11e

Hi there, I am new to Java and have a question about user input. In my book they use Keyboard.readInt() etc A tutorial I watch does Scanner input = new Scanner(system.in) I also saw a few videos doing, well I don't remember exactly but something like... I remember they imported …

Member Avatar for OblibSystems
0
177
Member Avatar for maizer1

Hi, on our webpage, we display text taken from the DB, that includes html character codes like &lt;br/&gt;. Obviously, this display as <br/> on the page, but we'd like to actually see the newline. Its probably stored like this in the DB because we did an escape on the text …

Member Avatar for maizer1
0
113
Member Avatar for vishal1949

I am new to programming and I don't know how to make interfaces. My code is : [CODE]public class CarsDescription { /** * @param args the command line arguments */ public static void main(String[] args) { interface Domestic {} interface Import {} interface Japanese extends Import {} interface German extends …

Member Avatar for Ezzaral
1
349
Member Avatar for Majestics

I want to create a tool tip which has fix rectangular size and show custom font's... Any tips or link or any material to start with?

Member Avatar for mKorbel
0
157
Member Avatar for Majestics

I m using windows vista, and i have set l&F of my app "classic look and feel", which is fixed, as windows seven doesnt have classic theme , will java "classic look and feel" work on windows 7? If not then how can we make it work? :)

Member Avatar for Ezzaral
0
144
Member Avatar for mharklance02

[/B]Write a program to read age and gender of 45 Students enrolled in an Art Class. Display the total number of students whose age is between 8 and 12.

Member Avatar for Ezzaral
0
127
Member Avatar for raviaaaa

iam inserting the emp details to TABLE, values are updating to ATABLE but iam not getting updated values in view (java sript in jsp file) please suggest me how to solve this problem

Member Avatar for javaAddict
0
303
Member Avatar for sankarnarayanan

I am creating a media player using java media framework. I want to develop a sound equaliser for it. where can i find codes for it.

Member Avatar for Ezzaral
-3
32
Member Avatar for sirin_adam

Hello! [CODE]public static void main(String[] args) { System.out.println("Type the operation system (Windows or Linux):"); Scanner oku= new Scanner(System.in); String os=oku.next(); if(os=="Windows") { CreateForWindows(); } if(os=="Linux") { CreateForLinux(); } else { System.out.println("Wrong selection. Program closed."); return; } return;[/CODE] It always show me Wrong selection. Program closed. I can not understand why …

Member Avatar for sirin_adam
0
170
Member Avatar for almostbob

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 the codescrap entered in the address bar makes any web page locally editable, you can play with any element or content

Member Avatar for MooGeek
0
72
Member Avatar for vijaybrar

Hi I need help its actually working fine but i don't know how to put a control structure in knowing whether the input is wrong, example when i instruct user to input number it must be less than 100 if not error will show up that is only the last …

Member Avatar for vijaybrar
0
510
Member Avatar for mozy1691

am a student developing a programe for a lib but am failing to create new JFrames when buttons are clicked i need help handing in with 3 days

Member Avatar for masijade
0
86
Member Avatar for mingis

Hi there, I am a complete newbie to JSP so apologies if this is a blindingly obvious question - I have researched on Google, but can't get this working. I have a simple switch statement as below: [CODE] <% for (int a=0; a<10; a++) { if ( null != countryID[a] …

Member Avatar for masijade
0
142
Member Avatar for morymory

Hello, I am a Thai beginner and this is my test code. I run my old code and it error 500. I don't know how to fix it because last time i can run it and no error. And i didn't change anything in my code, just run it again. …

Member Avatar for morymory
0
136
Member Avatar for plasticfood

i am not saying that all of my jar files are not working. in fact, all of them do work so far except for this one game that i've made. it runs perfectly in my editor, but its jar file will not execute. i checked its MANIFEST.mf file and the …

Member Avatar for plasticfood
0
156
Member Avatar for zachf632

Is it possible to have a python program communicate to a java program over the internet? Like could i send text over sockets from a python program and have a java program receive it.

Member Avatar for NormR1
0
73
Member Avatar for MissJava

Hi there, I am supposed to make a Java programme called prize collection My programme is a follow: [code]import javax.swing.JOptionPane; import java.util.*; import java.lang.*; public class PrizeCollection { public static void main (String[]args) { // Declare variables and arrays which will be used in the programme String[] Name = new …

Member Avatar for MissJava
0
120
Member Avatar for -acir-

i tried to add enum.. not sure why its not working... pls help. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.io.PrintWriter; import java.util.Random; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * …

Member Avatar for -acir-
0
109
Member Avatar for nerdy9000

I am a beginner to Android programming. I am trying to convert an string(from an EditText widget) to a double Whenever i run the program, it crashes whenever the parseDouble function is used: [CODE]Double.parseDouble( input.getText().toString() ); [/CODE] Does anybody have an idea why parseDouble causes my program to crash and …

Member Avatar for nerdy9000
0
1K
Member Avatar for dhija22

Hi everyone I am a beginner in java,and i need your help.If i have a array like this : [CODE]int [] eda={2,5,8,9}[/CODE]how to use the get and set methods for consult and change the data of this array..?? Please help me with a simple example if anyone can.Thank u I …

Member Avatar for NormR1
0
1K

The End.