32,199 Topics

Member Avatar for
Member Avatar for shadowsrose1

I am honestly stumped. I need to Create a BankAccount class that has the following: a) Instance variables for: name, accountNumber, balance, typeOfAccount b) Accessor/mutator method for each instance variable (You will end up having 8 methods) c) Create a displayAccountInfo() method that displays the account information as follows: Account …

Member Avatar for JamesCherrill
0
3K
Member Avatar for narendera22

Hi, I am consuming a java WebService through WSDL in asp.net project. I have created a proxy through Visual Studio wsdl utility and added all message header that has value like version, username, password. I am able to run this service through SOAP UI 4.5 but not able to get …

0
159
Member Avatar for moaz.amin.37

It is commanly said that java is architectural neutral what is the basic concept of this.I want brief answer on it and some examples of this.

Member Avatar for jwenting
0
434
Member Avatar for dansmith1234

Can someone help me with implementing the deathbycaptcha API into Denodo? Thanks

Member Avatar for JamesCherrill
-3
251
Member Avatar for Slavi

I am trying to create a runnable jar file .. did a few days ago with a single class and worked fine but now it doesn't seem to be working as good with multiple files .. Here is what I did 1) - create manifest.txt the contense of it is …

Member Avatar for Slavi
0
515
Member Avatar for laguardian

Hey guys! I'm writing this really long code for practice. Got really rusty with Java so I gotta get brain working again. Anyway, the first part of the code asks the user for the number of employees; the for loop then keeps asking the user to input employee names depending …

Member Avatar for Doogledude123
0
281
Member Avatar for Mr.M

Hi Dw I'm not a master in java and I'm kinder new to it even though I can do certain things in java. I'm developing an object oriented project and I've done with the object class now I want to make the device be able to listen and execute the …

Member Avatar for Mr.M
0
410
Member Avatar for dlunge
Member Avatar for jwenting
0
122
Member Avatar for Slavi

It's not really a problem that I am facing, more like looking for explanation ... I had this import java.util.*; import java.io.*; public class ReadFile { private static int lines=0; private static List<String> words=new ArrayList<String>(); private static String fullLine; private static int indexOfSpace; private static String getWord; private static String …

Member Avatar for JamesCherrill
0
224
Member Avatar for iamcreasy

I have two classes that I am compiling from command line. One is Vehicle class, class Vehicle{ int passangers; int fuelcap; int mpg; } and another is VehicleDemo class. This class instantiate an object of Vehicle class. class VehicleDemo{ public static void main(String args[]){ Vehicle minivan = new Vehicle(); int …

Member Avatar for iamcreasy
0
224
Member Avatar for madhatter777

I am trying to figure out why this one part of my program is not working. I am trying to count the number of the letter s a user types in when prompted using indexOf. For some reason it will not work correctly. Thanks for any help. import java.util.Scanner; public …

Member Avatar for Taywin
0
169
Member Avatar for hamdaalblooshi

import java.util.*; public class JavaApplication23{ /** * @param args the command line arguments */ static Scanner console = new Scanner(System.in); public static void main(String[] args) { //creat 5 arrays and declare String [] Student= new String [10]; int [] Quiz1 = new int [10]; int [] Quiz2 = new int …

Member Avatar for stultuske
0
234
Member Avatar for Stefce

Hello im trying to connect database with my java program for register/login but im not doing well, i have online database on godaddy and i cannot connect with the java program i tryed with using the `URLEncoder` and it works for registering but for loging in i cannot make it …

Member Avatar for Stefce
0
286
Member Avatar for moaz.amin.37

hi i can't undestanding this why the main function in java is static and static function can call using class name. And why we declare main function as public. i can not understanding this procedure of main function in java. plz help me.

Member Avatar for stultuske
0
310
Member Avatar for Slavi

A few days ago, i made a hangman game and I really want to complete it in any aspect. One of my ideas now is to "import" words from a file. Currently what I have is an Array of Strings (just a few words inside for testing) and what I …

Member Avatar for Slavi
0
255
Member Avatar for silvercats

Tried to run ServiceServerImpl.class with rmic and got this error. Below is the command prompt text pasting. "C:\Program Files\Java\jdk1.7.0_21\bin>rmic.exe ServiceServerImpl error: File .\ServiceServerImpl.class does not contain type ServiceServerImpl as expected, but type serviceserver.ServiceServerImpl. Please remove the file, or make sure it appears in the correct subdirectory of the class path. …

Member Avatar for jwenting
0
2K
Member Avatar for hwoarang69

# What I am using: # I am using java & libgdx to create a game in desktop & android. # Error: # Could not find class 'com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator', referenced from method com.aa.GameStates.MainMenu.init so on desktop version, everthing work fine and no errors. Problem is when I run it on android. …

1
181
Member Avatar for Builder_1

please tell me in how many ways OBJECT ORIENTED PROGRAMMING is different from procedural programming in JAVA

Member Avatar for JamesCherrill
0
293
Member Avatar for laguardian

Hey guys! So I'm writing a program that takes in a user input (1-3) and then executes the corresponding method. I keep getting the wrong output. For example, for prob1 when I input "john doe" it prints "Unauthorized!". And I'm like, foolish computer! I am your MASTER! How can I …

Member Avatar for JamesCherrill
0
227
Member Avatar for laguardian

Hey guys! So I'm writing a code that takes 10 numbers from the user which is stored in a array. The user then inputs the problem number (1 or 2) depending on what they want to do to the array. Unfortunately, I'm getting and error on line `array[i].prob1(); `.. Here's …

Member Avatar for laguardian
1
240
Member Avatar for toring

Hi, I jus want to ask why is it that the pacman will move but it will get larger when it is painted..also is that the proper way to draw?. here is the code import javax.swing.*; import java.awt.*; public class Mypacman extends JFrame implements Runnable{ int x; public Mypacman(){ setVisible(true); …

Member Avatar for JamesCherrill
0
432
Member Avatar for tdurgule

I want to save selected text file as html file i have written following code JFrame parentFrame = new JFrame(); JFileChooser fileChooser = new JFileChooser(); fileChooser.setSelectedFile(f12); fileChooser.setDialogTitle("Specify a file to save"); int userSelection = fileChooser.showSaveDialog(parentFrame); if (userSelection == JFileChooser.APPROVE_OPTION) { File fileToSave = fileChooser.getSelectedFile(); System.out.println("Save as file: " + fileToSave.getAbsolutePath()); …

Member Avatar for JamesCherrill
0
123
Member Avatar for Slavi

How can I keep track of the unguessed letters yet in my JTextArea? In the non gui version I used an arraylist, worked fine but should I leave the arraylist and use it to track unguessed caracters ? The method is still console based, just started implementing the gui made …

Member Avatar for Slavi
0
748
Member Avatar for gharris55

I was trying to figure out how to insert pictures into Java, but as music in the background plays, the pictures alternate. It would be really great if someone could include the music code too. Thanks for any help in advance.

Member Avatar for gharris55
0
211
Member Avatar for darrylnuyda

Hi Everyone, Can I ask your assistance how to integrate the AMBRA platform in Tomcat? "Ambra is an innovative Open Source platform for publishing Open Access research articles. Architecture Features Ambra is written in Java." Actually, done for installation in tomcat but the Ambra is the next, but how? Regards, …

Member Avatar for peter_budo
0
147
Member Avatar for VernonDozier

OK, I have been experimenting around with GridBagLayout and I'm getting the hang of it. Things are looking the way I want them to on the INITIAL drawing of the GUI. However, when I RESIZE the JFrame to make it smaller vertically, at a certain point, the proportions get skewed. …

Member Avatar for Doogledude123
0
3K
Member Avatar for Big-D2xL

I'm trying to create a .txt reader and inserting the read data to the cleansheets software we are editing in class but instead of putting the correct data it does nothing. I made some prints and this is what I obtain: D:\Documentos\Desktop\ImportTest.txt cacacaca ----- [[Ljava.lang.String;@73a175] cacacaca ----- [[Ljava.lang.String;@73a175, [Ljava.lang.String;@364cf2] cacacaca …

Member Avatar for Big-D2xL
0
257
Member Avatar for moaz.amin.37

i can not understanding the error of this program interface Test { void show(); void input(); void square(); } class Run implements Test { int a,b,c; void show() { System.out.println("a = " + a); System.out.println("b = " + b); System.out.println("c = " + c); } void input() { a=2; b=3; …

Member Avatar for moaz.amin.37
0
166
Member Avatar for sankubha

I had Developed a software in java. Need to update the software occasionally.How to update it with notification.

0
118
Member Avatar for Slavi

Well, the title says it all. Imagine that I have HelloWorld.java , I want to create an executable jar from it. I know that if I use IDE such as eclipse I can create it there but how can you create it without that?

Member Avatar for stultuske
0
181

The End.