32,199 Topics

Member Avatar for
Member Avatar for Unebrion

Hi everyone! I'm new here this is my first post and woe is me its a call to anyone willing to help me! I'm in an introduction course to java at school and I have programed a little in the past, but nothing to write home about. Today my instructor …

Member Avatar for quuba
0
139
Member Avatar for wolverinert68

This is my first attempt at coding. I am completely frustrated and need any help you can give me. I am supposed to take the values in the main method and in the next 2 (these are the ones i am trying to write from scratch) make the values in …

Member Avatar for mattwaab
0
118
Member Avatar for Blondeamon

Hello guys i am solving last years exams for practice when i stepped over this quiz. I have been fighting it for 2 hours but cant solve it. I must fill in the blanks so the program makes sense and i know its an interface , a class and a …

Member Avatar for darkagn
0
113
Member Avatar for agfras

I want it to skip any lines read that throw an exception so I store the lines with errors in an ArrayList. But when it goes through when it gets an error, it will not skip the line and give same error and keep repeating. [code=java]/** * */ /** * …

Member Avatar for agfras
0
78
Member Avatar for nimrod123

problem with JTree.when i drag the icon to the editor the standard tree with its default values showup.but when i go to properties no MODEL to create the tree is there. this not really a java question for a forun like this.however, if by chance you do have an idea …

0
38
Member Avatar for |\|asrin

Please somebody help me! I`m a beginner and want to learn web designing. I want to khow taht is there any diffrences between Java & JavaScript if yes which one of them is better for me I have learned just C programming language.

Member Avatar for |\|asrin
0
153
Member Avatar for localp

i want to know how to send sms from a java program, so far i am aware that you will need a sms gateway, but i dont know from at which point to start coding .... i am an absolute beginner, and i please help me with step by step …

Member Avatar for verruckt24
0
1K
Member Avatar for kin89

can anyone plz help me. i m not able to compile source code.the problem is javac not recognised as internel or externel command.

Member Avatar for stephen84s
0
612
Member Avatar for meo_beo

Hi, I wrote a simple Java program that allows changing the background color of itself by clicking on the radio button, like this: [code] import java.awt.*; import java.awt.event.*; class Colors extends Frame implements ItemListener, ActionListener{ Label lblTxt = new Label("Choose a color:"); Label lblInform = new Label(); CheckboxGroup cbg = …

Member Avatar for quuba
0
154
Member Avatar for riya_s505
Member Avatar for stephen84s
0
72
Member Avatar for jls7168

I am trying to make a table of all the ASCII characters but am having some trouble. I have all the characters printed in a list order, but need to make it into about 10 columns across. Any help is really appreciated. Here is my code so far...[CODE]import corejava.*; public …

Member Avatar for jls7168
0
73
Member Avatar for shimbardy

Hello, I am new to java with some experience in C++. I am trying to write code that reads two different times and displays the difference in hours and minutes. 0 is midnight and the input should be in 24hr format. This program should work even if the first time …

Member Avatar for stephen84s
0
289
Member Avatar for jsand2

So I have been looking around and have not been able to find an answer to this. The program is for the most part complete and runs with one exception. When I enter "stop" it still runs through the program before exiting (i.e. after I enter stop it still asks …

Member Avatar for stephen84s
0
389
Member Avatar for !Nerd

Hello everyone. I'm having some trouble with a game I recently made for a class. It's a beginner's Java class, so the teacher didn't mind the problem, but it's been really bugging me. My game is a Tower Defense, but it blinks every time the enemy moves. Rapidly blinks. My …

Member Avatar for stephen84s
0
99
Member Avatar for egee

anybody out there please help me out fix these bug in my code. i really couldnt figure out what's wrong with my code. input should be in a string, and the output should tell wether its a palindrome or not please![code] import java.lang.*; import java.util.*; import java.io.*; public class istak …

Member Avatar for egee
0
95
Member Avatar for ITlang007

Whats up guys, I'm writing this java program and I'm having trouble with Strings. Does anybody know how to write the following methods? public void bubbleSort() //sorts the array strings using Bubble Sort Algorithm (ascending) public void selectionSort() //sorts the array strings using Selection Sort Algorithm (ascending) public void insertionSort()//sorts …

Member Avatar for ITlang007
0
58
Member Avatar for vartikachandra

how do i read character by character from a text file?I need to check for "\n" and split the file on it. for eg: I am a girl.I livein acd. My name is sdljnl. usoihuid. So finally i want to delete the 1st msg(line) from thefile so that the file …

Member Avatar for vartikachandra
0
90
Member Avatar for jhonnyboy

Hey guys im making a simple program. I have a while loop that continues while the bool quit ! = true. I am trying to test that in a statement like this: [CODE] String userdecision = ""; while (quit!=true){ //start while System.out.print("Would you like to continue with another transaction?"); [B]userdecision=in.next();[/B] …

Member Avatar for jhonnyboy
0
137
Member Avatar for vartikachandra

code:: [code] import java.io.*; import java.util.*; public class Global{ public static int flag=0; } interface filebackedfifoqueue { void put(String msg); String get(); } public class trying{ public static void main(String args[])throws IOException{ int ch=1; String msg; msg = new String(); while(ch!=0) { BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); System.out.println("\nMenu"); System.out.println("\n0.EXit"); System.out.println("\n1.Publisher"); System.out.println("\n2.Subscriber"); …

Member Avatar for vartikachandra
0
110
Member Avatar for tanha

Hi everybody, I want to have a login form in Java, which comparing the username and password, according to MySQL database data, so I have the following code, just don't know where to add the select statement and how verify the username and password from MySQL with the JTextfield of …

Member Avatar for peter_budo
0
3K
Member Avatar for puneetkay

Hello Everyone, Few days ago, There was active thread on creating own DBMS in Java. Its not an easy task so i decided to create Object-Relational Mapping Framework and i have done so. I have tested all methods and its working perfectly. Now i have decided to make it available …

Member Avatar for puneetkay
0
169
Member Avatar for Mr.UNOwen

Hello, I'm creating a program that involves coloring an image thats is gray scaled and has a transparent background. How do I do that?

Member Avatar for peter_budo
0
66
Member Avatar for Manutebecker
Member Avatar for Manutebecker
0
109
Member Avatar for gokcer

I am doing a Java project and in my gui I want to use Buttons. I want to put a class' internal parts code as a button action. Because the class Throws Exception when I copy the contents of the class under the button definition I encounter unreported exception error. …

Member Avatar for gokcer
0
128
Member Avatar for hell_tej

hi Frends, I am a NetBeans user, I show an error in My project when i click on Design view of JFrame. Error is:-"The File Formate is Not Recognized" this is my project database's JFrame. i can't see the design view but ican write code in it. In code window. …

Member Avatar for quuba
0
126
Member Avatar for MxDev

hi guys, how to make frames, or windows in a shape of circle or something not in regular rectangular?? Thanks in advance.

Member Avatar for stephen84s
0
30
Member Avatar for leeba

I have two strings s1 and s2. I have to check what is the largest occurence of letters in s2 that are in s1. For example: s1="xyz" s2="abxyryxzycx" it would then return 4 since "yxzy" is the largest substring with all the letters in s1. It has to be recursive. …

Member Avatar for quuba
0
95
Member Avatar for barbz
Member Avatar for barbz

[CODE] import java.io.*; import java.util.*; public class Palindrome { public static void main(String[] args) throws IOException { char letter; String reversed,NEW; Stack S = new Stack(); BufferedReader stndin=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a word: "); String word=stndin.readLine(); for(int i=0; i<word.length(); i++){ letter = word.charAt(i); //this line should cut the 1st letter …

Member Avatar for barbz
0
175
Member Avatar for tuse

Hi! I am trying to initiate a client-server talk but for some reason it is not working. The server starts running, but when I start the client nothing happens. Please point out the mistake in my code- Server- [code="java"] import java.io.*; import java.net.*; public class MyServer { public static void …

Member Avatar for tuse
0
109

The End.