32,199 Topics

Member Avatar for
Member Avatar for carlitosway17

Hi we are supposed to modify this class for my school project to create a code that will print out a rectangle made of asterisks * something like ********* * * * * * * * * * * ********* here is my code [CODE] // Exercise 7.21: TurtleGraphics.java // …

Member Avatar for carlitosway17
0
168
Member Avatar for dasatti

I started developing an HTML editor using Java. After spending a lot of time I am now stuck in between. Most of the things are done but now I don't find any way to implement some of very important features. [B]I think[/B] java is too weak too support these features. …

0
105
Member Avatar for zeeya

Hello.. I'm new with java and have some problem with my assignment. I want to write a class named phoneBookEntry that has field for a person name and phone number. The class should have a constructor and appropriate accessor and mutator method. Then, write a main class that create five …

Member Avatar for peter_budo
0
1K
Member Avatar for draven07

..Hi to all...just want to ask.. ..I have already created an ideal layout for my calculator..my problem is...I dont know how to insert a value into a field everytime I press a button(0 to 9)..without deleting the previous integer after I press my operator.. ..how shall I do so..??..

Member Avatar for draven07
0
95
Member Avatar for srinivasan106

is it possible to send an sms through JAVA.. My requirement is a chat application like Rediff bol. am able to do chat using networks. but can i be able to send sms. just like when i press a button called send sms then a window needs to get a …

Member Avatar for peter_budo
0
79
Member Avatar for coco24

Is this a simple way to return the number of occurrences of theValue in a bag? [code] /** * Return the number of occurrences of theValue in the bag. */ public int countOccurrences( String theValue ) { // fill in code for(int index = 0; index <= topPosition; index++ ) …

Member Avatar for javaAddict
0
79
Member Avatar for Poopster01

If you read the Prologue section of the code I posted it will give you an explanation of what I am trying to accomplish with this program. The problem I am having is that I am unable to find an example of how to pass an argument through the string …

Member Avatar for Akill10
-1
324
Member Avatar for haribasker

please help me import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; import javax.swing.border.*; /** * Summary description for userlogin * */ public class userlogin extends JFrame { public static ServerSocket ssoc1; public static Socket sousoc1,ss1; // Variables declaration private JLabel userlabel; private JLabel jLabel2; private JLabel jLabel3; private JLabel jLabel4; …

Member Avatar for JamesCherrill
0
3K
Member Avatar for wailoon88

hi, good day to you, [url]http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/WebCrawler.java[/url] :-/ can anyone run this code in eclipse IDE ? because i cant seem to run it though and it caused errors. Is this code meant to run in IDEs ? thanks for visiting this thread and hope you can help me.

Member Avatar for peter_budo
0
139
Member Avatar for JGriffCS

I'm trying to create a class that reads in a set of numbers from a file, stores them in a generic array, and then sorts them using the generic bubbleSort method. I usually write in C++ and the switch from templates to generics hasn't been easy. I'm fairly certain my …

Member Avatar for JamesCherrill
0
701
Member Avatar for gretty

Hello [B]I am experimenting with Java applets & communicating between a Servlet & an applet. I am experiencing a HTTP 501 error when I go to retrieve the input stream from my URLConnection object.[/B] I know that the 501 error means that I am attempting to perform an action that …

0
67
Member Avatar for boifang

this code does not compile successfully because of the error which says update is not an abstract and does not override abstract method validate in line 5 and line 14 class updateinfo implements validateinfo [CODE]public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { …

Member Avatar for Momerath
0
106
Member Avatar for commando1200

Im trying to make a tax and tip calculator and whenever the tax comes up it goes 10 or more decimal places and im trying to restrict it to two. [code=java] public static void main(String[] args) { double cost, total, tip, taxtotal, tiptotal, subtotal, grandtotal; Scanner myScanner = new Scanner(System.in); …

Member Avatar for commando1200
0
194
Member Avatar for SavnetSinn

Hey all. I'm in the process of learning Java in my spare time, and I've bumped into a problem that I'm having a hard time wrapping my head around. I'm writing a small game (currently little more than an animation) involving a handful of blocks moving on-screen. I've created a …

Member Avatar for SavnetSinn
0
3K
Member Avatar for eikal

Hi guys, my program im working on ends when it shouldnt..... here's the main method. [code] public static void main(String[] args) { String answer; do { boolean whole=false; boolean whole2=false; Scanner sc = new Scanner(System.in); int one=0, two=0; do { try{ System.out.print("Enter the first whole number: "); one = sc.nextInt(); …

Member Avatar for ztini
0
151
Member Avatar for BuhRock

I am using an array to store 5 test scores. Then I have another array for the total possible score the test could have. I just need to find out what percent the grade is out of the total possible score. [CODE]public class Main { /** * @param args the …

Member Avatar for Katana24
0
100
Member Avatar for carlitosway17

Hi Am currently taking a Java class and we are supposed to use turtle graphics to draw the following shape rectange made of Asterix ************* * * * * * * * * * * * * * * ************* My program builds and compiles successfully but I cant get …

Member Avatar for carlitosway17
0
255
Member Avatar for newcoder310

Hi What is the best way to go forward with finding all possible combinations of nCr Eg: 5C3 for the number 12345 123 134 135 145 234 235 345 Like that thanks

Member Avatar for ztini
0
130
Member Avatar for wailoon88

hi guys.. can any gurus give me a hints or tips on implementing TF-IDf on java ? how do i start first? i am kinda confused here.. is it i need to read the file and count the words first ?

Member Avatar for ztini
0
66
Member Avatar for yukikazemedia

Hi, I have this really important project where in, I must perform the following tasks. VIEW - view records that are present in the database using a "primary key" ADD - add new records to the database EDIT - a specific line in the said record within the database [INDENT]Under …

Member Avatar for javaAddict
0
184
Member Avatar for bugista

Hello All I was using Java for capturing the screen and printing it. Now I need to capture the window, which is a ALt +Printscreen of Windows. I tried in Java. Could you pls help? Thanks in advance

Member Avatar for zach&kody
0
92
Member Avatar for coolcool1980

Hi folks, I have a java maze, I cant seem to pass the 2d array to the next method. Any ideas on how i can do this? I need to get the character to move around the maze. Thanks [CODE] public class arrayAttempt1 { static int i=0; static int j=0; …

Member Avatar for coolcool1980
0
3K
Member Avatar for Phatsimo Mosiam

helow everyone!when i execute the following code,i have saved it as validateInfo.java it tells me that line 5:duplicate class:validateInfo.Please help public interface validateInfo { public void validate(String empcode, String password); } class validateInfo implements validateInfo { public void update() { //code to update information of customer } public static void …

Member Avatar for javaAddict
0
104
Member Avatar for Shizuo

[code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Books extends Applet { Choice b; String [] blist; //CheckboxGroup edition; int i; public void init() { setBackground(Color.green); add(new Label("Please Pick a Book:")); b = new Choice(); blist [0] = ""; blist [1] = "Java Programming"; blist [2] = "C# Programming"; blist …

0
95
Member Avatar for thes0mething

I'm currently working on a tic-tac-toe program and it is working to the point that it runs and X's and O's appear. However when the right combination is made or the board gets full the method "Resultat();" should recognize it and "Clear();" should clear out the board and a JFrame …

Member Avatar for thes0mething
0
149
Member Avatar for xshinichix

Can someone help me with my homework? my teacher asked us to create a program that lets the user to input 5 integers and sort it using bubblesort. i have already write the code but its not the output that i expected. heres the code: [CODE] import java.util.Scanner; public class …

Member Avatar for xshinichix
0
200
Member Avatar for Gsterminator

The objective of this program is to create images or shapes by using 2day arrays. I've created the the maximum size in my constructor but my error is in the the rectangle method.This is my error: Hw11.java:60: cannot find symbol symbol : constructor Picture(char[][]) location: class Picture return new Picture(result); …

Member Avatar for JamesCherrill
0
116
Member Avatar for Nahiyan

Hello everyone, I am new to Java but know lot about other programming languages and experienced game developer. As Java is platform independent, we cannot compile it to .exe format and that's where my problem is. Suppose I have created a .java file and compiled it to .class file, then …

Member Avatar for Nahiyan
-1
150
Member Avatar for Sidd_

hi I want to know that i there any leave function in java like the one in c#. what i am trying to do that there is 2 combobox and the list of second combobox depends on the data selected in first combobox. so as soon as the user select …

Member Avatar for masijade
0
137
Member Avatar for churva_churva

[ICODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MainFrame extends JFrame{ JMenuBar main=new JMenuBar(); JMenu menu1=new JMenu("File"); JMenu menu2=new JMenu("Search"); JMenu menu3=new JMenu("Display"); JMenu menu4=new JMenu("About"); JMenuItem exit=new JMenuItem("Exit"); JMenuItem pw=new JMenuItem("Piece Worker"); JMenuItem hw=new JMenuItem("Hourly Employee"); JMenuItem pcw=new JMenuItem("Piece Worker"); JMenuItem hrly=new JMenuItem("Hourly Worker"); JMenuItem author=new JMenuItem("Author"); JLabel …

Member Avatar for churva_churva
0
156

The End.