32,204 Topics

Member Avatar for
Member Avatar for stephen.teacher

hey all im a relative noob with progaming if i could get some help i would be greatfull this is homework but not the whole assignment thank you all So when i run this it works fine if i type in the name of the first node but none of …

Member Avatar for stephen.teacher
0
221
Member Avatar for imclumsy

Hi, I am trying to create a method to check if a binary tree is an AVL tree without using the height method of the author's binary tree. This is my code USING the height: [code] public boolean isAVL(BinaryNode<AnyType> t) { int leftSubtreeHeight; int rightSubtreeHeight; if (t == null) return …

Member Avatar for JamesCherrill
0
262
Member Avatar for moaz.amin.37

i can understand it when we want to implement polymorphism in c++ we use virtual functions and function overriding but when we want to implement polymorphism in java then we do not use virtual methods why. in java we use simply reference object that can store the address and use …

Member Avatar for Slavi
0
256
Member Avatar for Slavi

I made the famous game Scissors, Paper, Rock as console application. The game runs great ... Now I want to make it a bit more advanced and allow 2 clients/users to play against each other from different locations. I checked few tutorials on sockets and networking, and in them they …

Member Avatar for Slavi
0
250
Member Avatar for anita_2

There is series of 20 numbers composed by two numbers is given like 9876,7698,7676,9898,987698,769876 Develop a logic in java to find out these two numbers series composed by First number is - 98 Second is-76 How to develop a logic Another series - 1213,121312,1313,1212,12131213 First Number-12 Second Number-13

Member Avatar for JamesCherrill
0
160
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
161
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
436
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
517
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
283
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
411
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
170
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
287
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
460
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

The End.