36,051 Topics

Member Avatar for
Member Avatar for stella09

:icon_redface: what is the equivalent code for this in JAVA :icon_redface: C: for(i=0; i<MAX; i++) { printf("Give the %d element\n:", i+1); scanf("%d", &VECTOR[i]); }

Member Avatar for Ezzaral
0
64
Member Avatar for eikal

hi, i'm making a simple program where it when you type a name of soemthing from a video game it will give you a brief description, i'll be using if and else statements, here is what i have so far. [code=java]import java.util.Scanner; public class WoW { public static void main(String[] …

Member Avatar for eikal
0
85
Member Avatar for samirf

Hi All I am a peoplesoft developer and I dont understand JSP too well . I have following two questions about the code below . 1) Are we using a POST call to [url]https://SomeUrl/ssoreq.asp[/url] (not a GET request) ? 2) Are we assigning the content-length and content-type header variables prior …

Member Avatar for peter_budo
0
139
Member Avatar for klimenta

I have an abstract class called student with an abstract method add(). I also have other classes undergraduate, graduate, parttime that extends student. Requirements are that I have to have an abstract class student and the same abstract method add(). This method needs to write to mySQL DB elements entered …

Member Avatar for ~s.o.s~
0
319
Member Avatar for Acegikmo

[B]This has been solved! Look at the end of this post.[/B] Hello! I'm having some trouble here with polymorphism, as I need to access methods in a subclass from an array of superclass objects. This method is called parseCommand(Command c); The method exists in the superclass and is overridden in …

Member Avatar for masijade
0
276
Member Avatar for Ashwin1985

Hi Is there any way I can use a pair of keys(private-public key pair) generated externally for encryption/decryption of files rather than generating a pair of keys for every cycle of encryption/decryption ?? My program requirement is that I need to run an encryption program packaged in a jar file. …

Member Avatar for Ashwin1985
0
185
Member Avatar for adam291086

Hello, i am trying to add a keyboard event listener to my Jpanel. But i am having no sucess. This is my [B]board.java[/B] [CODE]package snake; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.image.ImageObserver; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.ImageIcon; import javax.swing.JComponent; import java.awt.Image; import javax.swing.JPanel; import java.awt.event.ActionEvent; import …

Member Avatar for thomas_naveen
0
1K
Member Avatar for wild_angel

Hi All! I have a table that there is a combo box inside the table. For example, the combo box consist of item codes. And then, whenever user choose item from combo box, the next column inside the table will show name of the item. Here is my example coding: …

Member Avatar for wild_angel
0
232
Member Avatar for checho

hi i have the next problem i have an array or arraylist from class Student which has firstname, lastname and grade. How can i sort them by grade (value) - ascending and descending? [CODE]package zadacha_1; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Zadacha_2 { /** …

Member Avatar for Andreas Hollman
0
490
Member Avatar for Larbi

Please, show me How to return to a calling void method within or without using the RETURN (in java). Thanks

Member Avatar for verruckt24
0
284
Member Avatar for blainj

Im brand new to java and programming in general. Just wondering if someone could help me out with my homework. Method 1: Write a public static method named myUserName. This method does not return anything. This method accepts no parameters. This method simply prints out your engr username (all lowercase …

Member Avatar for musthafa.aj
0
81
Member Avatar for luisgomez

Hello, my name is Luis Gomez, i'm the responsable for z3950's client development, i want to thank you for your time and will for help us. I've already revised de code, i looked some test source code: /*Test source code */ public void testLOC2() throws Exception { app_context = new …

Member Avatar for adams161
0
602
Member Avatar for alkeshtech

Hi guys, I am wondering how can I create a sorted linked list, without using Collection.sort(). Is there a way I can add element in a list in a sorted fashion?

Member Avatar for Andreas Hollman
0
116
Member Avatar for deepak17

i want to make a project on messnger in java wit the help of jsp and sql database so kindly elp me on my project i m fresher so plz give the basic detail also

Member Avatar for peter_budo
-1
79
Member Avatar for jemz

hello please help me on this i have gui then it has 2 textfield, input your name then input your last name...when i click the add button the 2 textfield are clear then when i click the search button there will be JOptionePane.show input dialog then prompting the user "Please …

Member Avatar for peter_budo
0
75
Member Avatar for valatharv

Please suggest how thius can be achieved and best approach to follow. a) Suppose server1 have application which is started using "java -[B]Xmx512M[/B] -jar <[B]app1[/B]>.jar" from command prompt from particular directory example C:\proj\application1> C:\proj\application1> Based on certain condition I want to stop this <app1>.jar on server1 and b) Start app.jar …

Member Avatar for vladimirdlc
0
161
Member Avatar for tmayb

hi. .. im asking for a code of the mastermind game. . . wer d user guess the 3-color pattern randomized by the pc. . .. the user have only 6 guesses. . .. if he guess a color in d ryt position or a color in d wrong position …

Member Avatar for mrnutty
-2
100
Member Avatar for oxxxis

Hi, I am new to java programming, but i have this problem: I open an image, i put ir in array 2 dimensional, teh idea is like this array[count][0]=x; array[count][1]=y array[count][2]=red; array[count][3]=green; array[count][4]=blue; array[count][5]=alpha; I do so becaude i need to work with colors, but later on i want to …

Member Avatar for stultuske
0
131
Member Avatar for horsemuleman

Hi. I recently starting getting redirected to misc. sites when clicking on Google, Bing or Yahoo search results. Was using McAfee and found nothing. Uninstalled McAfee and downloaded Kaspersky and found 6 trojan viruses. Cleaned them and still have the same problem. Spybot and Malwarebytes find nothing as well. Could …

Member Avatar for horsemuleman
0
189
Member Avatar for ahmed hashmi

//i have written this code in package p1:: //address of this file is:::C:\p1 package p1; public class balance{ String name; double bal; public balance(String n,double b) { name=n; bal=b; } } //and now i want to import this file in this code //address of this file is:::C:\Program Files\Java\jdk1.6.0_11\bin import p1.*; …

Member Avatar for musthafa.aj
0
86
Member Avatar for josephkn

I have compiled a java program in suse10 without a problem but it comes to running it i encountered this statement :Exception in Thread "main" java.lang.No such method Error :main

Member Avatar for musthafa.aj
0
80
Member Avatar for Srikant1

hi i have created a page using JSP called Login Page containing Username & Password As its Attributes My problem is that I am not able to connect it with My SQL Database can any body help me regardind connection code

Member Avatar for musthafa.aj
0
78
Member Avatar for dado87

GIVEN: patient,doctor,descriptions of doctor,does+medicines,visits,invoice,invoice detail. 1-recognize the given in a table 2-desighn the organized table 3-determine the primary and secondary key 4-describe

Member Avatar for ithelp
-7
82
Member Avatar for swethakrich

I am having two combo box value say List 1 and List 2 And user can move the items from List 1 to List 2 and vice versa. After completing the "Move" operation the user would like to "SAVE" these changes. At this point I need to have all the …

Member Avatar for javaAddict
0
182
Member Avatar for eikal

hi, i'm working on a little project i made for myself, i want to create a menu with 4 choices and i want to use an array cause im struggling to understand how write them, now ive started to do it but i've lost myself in the code and don't …

Member Avatar for Zaad
0
82
Member Avatar for java..

i want to set some initial level parameters before calling main method... how to do... within main i can set it first but it have no effects...

Member Avatar for java..
0
93
Member Avatar for Dudesup

Not sure if this is the right place to put this as it's my first post, so if it's not I apologize. I'm wondering if there is a way to put an image into the background of my applet. I've searched all over the place and just can't seem to …

Member Avatar for Dudesup
0
125
Member Avatar for SasseMan

Hi! I'm writing a java app with a swing gui. The problem is the following. I am developing on a mac, where it runs fine. but when I run it on Windows Posready09 (Windows XP), which is the platform the app is intended for, or Windows7, half of the window …

Member Avatar for SasseMan
0
216
Member Avatar for shiv0013

i want to generate automatic emails. i got the following code by google. i also added the mail.jar file into lib of web inf. wen i execute this code i get exceptions "Could not connect to SMTP host: smtp.gmail.com, port: 25 (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)" and "Unrecognized SSL …

Member Avatar for c_blimey
0
91
Member Avatar for Dearster

I have got given a homework: FileDescription program requests (as shown) and reads three lines of text. It then processes the data. For each line the first string (containing no spaces) on the line is a file name – followed by a file description. If the file name has the …

Member Avatar for stultuske
1
124
Member Avatar for sridhar kosna

Hi to all, This is sridhar. i completed my B.tech in it. I am very much interested in doing proj onjava platform so any one can give me views and ideas and alsocould any one giveme proper guidence in completing the project.

Member Avatar for stultuske
-2
86
Member Avatar for P00dle

I need help with jFilechooser. I've already made the jFilechooser. The problem is that I want to change the text of the "save" butten to "Ok", as I need it to perform a save function, as well as a read function, on different occasions. Changing the code where the jFilechooser …

Member Avatar for P00dle
0
173
Member Avatar for dangari

Hi all, I have two jsp pages say jsp1 and jsp2. In jsp1 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="one" scope="session" class="mypackage.myclass1" /> [/code] In jsp2 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="two" scope="session" class="mypackage.myclass2" /> …

Member Avatar for dangari
0
154
Member Avatar for cristine.apin

[CODE] hello everyone! I am a newbei here... Pls help me answering this question: How to write data in a new line in a particular text file? Is there any particular method in the RandomAccessFile class in java that is capable of handling such thing. Here's my code: import java.io.*; …

Member Avatar for musthafa.aj
0
1K
Member Avatar for musthafa.aj

how do establish socket connection over local firewall... i creating TCP socket program in java .. it is working fine when firewall is in OFF... but it is not in case of ON... I DON'T like to switch off firewall..i like to make it genuine... any idea please...(i don't like …

Member Avatar for masijade
0
99
Member Avatar for inchara

watz the use of developing a video chat application using JMF when there are already many chat applications available? how advantageous and how different is it from other applications? plz reply soon..

0
47
Member Avatar for dunderreckon52

pls Sum1 help Me Out I need a j2ee Project wid atleast 5 Modules n D titles r as Follows : 1.Complete Mailing System in JSP. 2.E-Space. 3.Video Conference. 4.Virtual Private Network. 5.ATM Banking 6.PC Security Management. out Of des Any 1,i need.. Pls Any 1 out der help me

Member Avatar for verruckt24
-5
121
Member Avatar for squinx22

Hello, How could this be possible: SuperClass has a method named executeMe(), Subclass1 that extends Superclass has also method named executeMe(), Subclass2 that extends SuperClass has also the same method. When I try to call the executeMe() method from SuperClass, all classes that has been called with the method executeMe() …

Member Avatar for musthafa.aj
0
93
Member Avatar for CaffeineCoder

Hey, I'm new to the Java arena, and am trying to create an application (using JForm and JPanel) displaying a fireworks show. The problem is creating an explosion for the display. Does anyone have any recommendations for creating an explosion? I've been stuck on this for quite some time and …

Member Avatar for cornmaster12
0
1K
Member Avatar for adams161

hi, I had a while loop in a run method, and in the while loop were a series of if stements. the series of if statments were in a try. my hope was if any if statement conked out it would catch the error, and continue the while loop ( …

Member Avatar for adams161
0
162
Member Avatar for markb536

schedule an automatic email that will go out at intervals that you define. Perfect for sending reminder email about accounting meetings, baseball game practices, or even upcoming birthdays.

0
77
Member Avatar for GoldenDrago

I have a project which I have been working on for the past few days and I have recently reached a point where I don't understand what to do. My program must have a main menu with "Add, remove, List Record #, List All, Sort, Exit" functions. I am supposed …

Member Avatar for GoldenDrago
0
173
Member Avatar for takeshi

Anyone knows how to code in this: when i delete a particular record,it display first "[ICODE]Are you sure, you want to delete?<br>Yes, No"[/ICODE]all i know is in Vb but i dont know in php..i know if-else statement are present in that code..tnx in advance!

Member Avatar for vaultdweller123
0
136
Member Avatar for anilopo

i want to add source files that i made in another computer to my project. i want them to be at the same folder as the project. how do i add them to the project? (to copy them into the folder wont help in this case..) thx!!

Member Avatar for anilopo
0
149
Member Avatar for al_buotan

hi everyone, i am very new in java. i am having problem in SWITCH CASE STATEMENT. can anyone please help me to solve the following problem: you have to write a program in java to generate the following menu with submenus: LinkedList 1: ADD ELEMENT 1-1: add first 1-2: add …

Member Avatar for verruckt24
0
96
Member Avatar for java..

how do manipulate byte array buffer .. i need its very urgent.. anybody give good example..

Member Avatar for musthafa.aj
0
107
Member Avatar for JBeginer7891

Hello members! Could someone please give me a hand on this? I have a JTable in my program that display query resuslt when the user search for a patient by entering the surname, the result is supposed to display in JTable in another frame. Here is what I've done [CODE]import …

Member Avatar for JBeginer7891
0
428
Member Avatar for al_buotan

hi everyone, i am very new in java. i am having problem in SWITCH CASE STATEMENT. can anyone please help me to solve the following problem: you have to write a program in java to generate the following menu with submenus: about linked List 1: ADD ELEMENT 1-1: add first …

0
44
Member Avatar for Web_Sailor

Hi... I want to read only the first line of a file and print the line. I don't want to read the whole file. How can I do that ? Here is how we normally read the file [CODE]import java.io.*; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.logging.Level; import java.util.logging.Logger; …

Member Avatar for rAun007
0
8K
Member Avatar for gunjannigam

I have RGB information about the pixels in a line. I need to draw the images in JPEG or PNG or BMP format using these information from the pixels.I dont know how to do this in java. Somebody help me out on how to start solving it out

Member Avatar for musthafa.aj
0
54

The End.