35,618 Topics

Member Avatar for
Member Avatar for jjones0150

I have the code for my InventoryManager class, my Product class, and my InventoryApp class . Based off this code, I need someone help me correctly call the methods I already have in place. There is a section where the method is supposed to be called and I have made …

Member Avatar for jjones0150
0
252
Member Avatar for strRusty_gal

Hi all, Thanks for viewing this thread. I would like to do a remote debugging of WAR file that contain one Java servlet. Anyone tried that before? I tried to use cmd with the following command: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -classpath "TestingServlet.war" MyServletName Not sure if the command above is correct, …

0
143
Member Avatar for eny321

I am trying to write an elevator test program in java. It is suppose to execute the following steps using the methods in the class: 1: Starting from the first-floor. 2: Go to 2nd (update bool GoingUp) 3: Go to 3rd 4: Back to second floor This is what I …

Member Avatar for stultuske
0
4K
Member Avatar for Zack_4
Member Avatar for Sonu_8

if user select on first select menu then it display a table if user select second select menu then it display paragraph both are show on same page so any one suggest me some jquery code .

Member Avatar for diafol
1
82
Member Avatar for dyingatmidnight

I'm really having a hard time understanding this stuff and all the examples I find online just aren't starting from a place that makes sense to me. I missed my lab last week and the prof suggested those of us who missed it should go through the lab anyway because …

0
156
Member Avatar for Mar. Na.

Hi, how can I get inherited classes in java api , after parsing class .. For example: Public class h extends C ..... and C extends B and B extends A.....andso on... How can I get these inheritance classes (A, B, C), I parsing class h using api parser: JavaClass …

0
105
Member Avatar for newprogrammer14

First let me confess that I'm a beginner with little knowledge of Java. I'm facing a problem with XML to JSON conversion. The XML that I need to covert is complex with elements that will repeat throughout the document. And the order in which the elements appear need to be …

Member Avatar for milil
0
2K
Member Avatar for OsaMasw

Hello guys am totally new to java development but I red some tutorial on web on how to create different application on Android Studio. I've created simple webview application with navigation drawer and everything work perfect, when I tried to add Parse.com SDK to use notification service my program crashes …

Member Avatar for OsaMasw
0
650
Member Avatar for Kakumani

HI EVERYONE!!In applets how to take coordinates as input given by user.Also we dont know number of coordinates user enters .In simple,how to take several points as input and present them on a graph as output??

Member Avatar for rproffitt
0
135
Member Avatar for altjen

hi, I am having a problem with adding button on jTable for each data I get from the database. here is what I get from database in SQLite try{ String sql = "select ClassName as 'Class Name', NumberOfStudents as 'Number of Students' from ClassRooms"; pst=conn.prepareStatement(sql); rs=pst.executeQuery(); Data_Table1.setModel(DbUtils.resultSetToTableModel(rs)); if(rs.next){ //code to …

Member Avatar for mKorbel
0
8K
Member Avatar for Lalit Chattar

Hi I want to display text and image both on the same jsp page. but the code display only image, which is retrieve from database. can i display both on same jsp page. all data retrieve from database with image as blob. please help me..

Member Avatar for prabhu.cyberway
0
3K
Member Avatar for can-mohan

Hi, Guys i just wanted to know whether set store elements in specific order or it contains unordered elements only. As per c++ specification http://www.cplusplus.com/reference/set/set/?kw=set Sets are containers that store unique elements following a specific order. As per my knowledge they are not ordered in the sense that you can't …

Member Avatar for JamesCherrill
0
308
Member Avatar for divinity02

hi everyone i havent been here in a long while since i have been here anyway, i am doing a program(practicing) but i dont or cant say if it is my calculation is off everything is working properly except for the the income tax part. it is outputting zero. tell …

Member Avatar for divinity02
0
255
Member Avatar for princessxeira
Member Avatar for NONONO123

I'm currently working on an android app to fetch data from the server. But when i run it, i get a NullPointerException. Can anyone help me with that? Here is my code: public class MainActivity extends AppCompatActivity { ListView lvPost; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lvPost = …

Member Avatar for NONONO123
0
3K
Member Avatar for vilastadoori

Dear Listers, I have create a project in java using netbeans. Have designed the user interface where I have a jtable and a button. When i created the interface it automatically populated the code and I have done nothing When i click the button it shoiuld call the class to …

Member Avatar for vilastadoori
0
1K
Member Avatar for prashant_savadi

Hi all, In my Java program I am launching batch script(.bat file). I am facing following error: FATAL: command execution failed java.io.IOException: Cannot run program "cmd" (in directory "C:\..\Project_Name"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113) …

Member Avatar for JamesCherrill
0
1K
Member Avatar for JaJavaBuddy

Hi, I need to complete this assignment. Everything seems to work except I need to output "T" and "H" along the dashed lines (respectively) everytime either the Tortoise or the Hare moves. Here is my code, thank you in advance. import javax.swing.JOptionPane; public class Tort { public static void main(String[] …

Member Avatar for raeee
0
2K
Member Avatar for amit_33

Hi guys OK i have been working on a map soultion in android. I use google places. I have the correct APi key. The place api works well and its good. When i send th coordinates to the map they show on the map but the map only shows grids. …

Member Avatar for peter_budo
0
136
Member Avatar for Mar. Na.

Hi, in this code how can I calculate coupling between objects CBO in java after parsing java file using registerCoupling method and retrieve any coupling between classes through argument, class name,type and so on .....

Member Avatar for rproffitt
0
2K
Member Avatar for Thea1950

Hi all, Can someone please define what a build and release engineer is in a brief summary. I've googled this but still have no idea what the person in this industry would do. **A**: What is a build and release engineer. **B**: What is a build and release engineer expected …

Member Avatar for rubberman
0
98
Member Avatar for Violet_82

Hi guys, so I'm starting with JavaFX using eclipse. I had a look at a few tutorials and the syntax seems quite different from other java projects I've done. Specifically, I'm a bit confused when it comes to add my code to the Eclipse project. I've just started very soft, …

Member Avatar for Violet_82
0
345
Member Avatar for Centorpe

The code below works ok and displays result (mDisplayNominalEff) to screen but I want to round the result to 3 places. I assume that I need to parse string to double. Any ideas on how to do this? String mDisplayNominalEff = ("" + (myDiameter - (myPitch * 0.649519))); TextView displayNominalEff …

Member Avatar for Centorpe
0
284
Member Avatar for Centorpe

I have 4 textviews which take their values from dropdown list (spinner) selected at previous screen. There can be either 2 or 4 numbers/letters as result of this selection. The first position will always be a number and the second position will always be a letter. The third position can …

Member Avatar for Centorpe
0
281
Member Avatar for dhitinair

can anyone suggest how to convert python code to java. Following is the python implementation """ K-prototypes clustering """ # Author: 'Nico de Vos' <njdevos@gmail.com> # License: MIT from collections import defaultdict import numpy as np from scipy import sparse from sklearn.utils.validation import check_array from . import kmodes def euclidean_dissim(a, …

Member Avatar for stultuske
0
1K
Member Avatar for Mar. Na.

Hi , this algorithm diffecult to implement and work ,how can i write code for this because ,i write code for it but isnt work completely to find CBO i.e Eff.size. Input: Any class file Output: Total coupling in the class file /*Eff is set for efferent coupling(set is java …

Member Avatar for Mar. Na.
0
259
Member Avatar for Siddharth_6

<select id="keyEquipmentShiftAutomatedModelData" parameterType="java.util.Map" resultType="java.util.Map"> SELECT ID, SUM(VALUE1 + VALUE2) Total FROM tableName GROUP BY ID </select> Returns below result in sql ID, Total 1 (null) But when returned in Map result in myBatis returns {ID=1} where as Total is missing. How to get the column with null into the result …

Member Avatar for Siddharth_6
0
192
Member Avatar for Mar. Na.

Hi, I need a simple code to find CBO coupling between classes ,by using bcel API.this code isnt work and i dont no how calculate cbo by using parser and (methods,classname and how pass it to program; in my code i calculate simple cyclomatic complexity but now,i need to find …

Member Avatar for rproffitt
0
331
Member Avatar for pihuu

Hi there, I am trying to get a data from a database using a query and populate it into a list view. Instead of getting a string value, I am getting "[Ljava.lang.Object;@64bba873". I have tried to cast it, but it did not work query1 = em.createQuery("Select e.name, y.surname from REQUEST …

Member Avatar for JamesCherrill
0
164

The End.