2,720 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for clementer

How do I compare 3 Arraylist with each other and find the small, medium and large elements. I was thinking something like this but its not working. ArrayList<interger> a = new ArrayList<ArrayList<interger> >(); a.add(1); a.add(2); a.add(7); ArrayList<interger> b =new ArrayList<ArrayList<interger> >(); b.add(8); b.add(9); b.add(1); ArrayList<interger> c = new ArrayList<ArrayList<interger> >(); …

Programming java
Member Avatar for Husoski
0
53
Member Avatar for Dan_860

I am having trouble appending an arraylist to an existing textfile, it appends but in the process clears all of the existing data inside of the file. Please can you help :) many thanks in advance Scanner myScanner = new Scanner (System.in); ArrayList<Books> details = new ArrayList<Books>(); int ISBN; String …

Member Avatar for rproffitt
0
46
Member Avatar for Deekshitha
Member Avatar for komalgul
Member Avatar for kww228

I am trying to get my program to do a simple math problem of A*B+C*D given a set of test numbers. I have the code written out, but after I input numbers for A and B it goes into an infinite loop. My code is this: [CODE]ORG 100 Load A …

Member Avatar for Mariam_16
1
4K
Member Avatar for Komlika_1

Consider the following database Room (room_no,room_name,room_type,charges) Guest(Guest_code, Gname,city) The relationship is as follows: Room-Guest: one-to-one. room_type can have values as either ‘AC’ or ‘NonAC’. Q 2) A Create the above database in PostGreSQL and insert sufficient records.

Member Avatar for john_111
1
2K
Member Avatar for SylveeAshley

I am writing a program that calculates the volume of a cylinder when you input the diameter and height, using the formula 1/4*height*3.14*diameter^2 However the issue is, whenever I do that, the volume always comes out to be 0 when I run the program. #include<iostream> using namespace std; int main() …

Programming c c++ java javascript
Member Avatar for Husoski
1
193
Member Avatar for david_206

Hi everyone. I wana ask to the experianced person that is it possible to make the exact replica of a website's android app ? I mean of I have a site related to novel or books can I make its exact android app? Which later can be published to Play …

Member Avatar for Dani
1
59
Member Avatar for Yogendra_2
Member Avatar for Idestruction

Hello all! I am trying to complete a lab assignment for my computer systems class and we have to use the printf function to print changing register values (increment eax from 1 to 10, decrement ebx from 10 to 1). Here is my code: [CODE]; Purpose: To print data to …

Member Avatar for John_310
0
22K
Member Avatar for Bhoot

i am developing a visual studio solution that contains two projects. Each project has its own namespace : Project1 : namespace MainProject.Project1 Project2 : namespace MainProject.Project2 My problem is that i cannot access 2nd project's namespace in the 1st project and vice versa. I tried to add the namespace through …

Member Avatar for V._549
0
11K
Member Avatar for collin_ola

Hi, Could somebody provide me with an example of how to display data (some text) in a combobox? Thanks Collin

Member Avatar for Muskan_9
0
8K
Member Avatar for Debby0424

Hello All, I am submitting a inventory program that I need some help with. I had to create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. Then I needed to create a java …

Member Avatar for Batha
0
7K
Member Avatar for TheMightySpud

Hi all, I'm getting a strange error every time I try to send a score update using an rpc using Photon Unity Networking (And Unity3d). Here is the Error. RPC method 'RPC_SendScore(String, Single)' found 2x on object with PhotonView 1201. Only one component should implement it.Return type must be void …

Member Avatar for rproffitt
0
1K
Member Avatar for daledan

help!!!... i have homework to create a simple address book in Visual C++ it should Add, Delete, Modify, Display A Record using classes/class, file handling & structure... It would be a big favor doing it..

Member Avatar for Mian_13
0
742
Member Avatar for paul1145

In Visual Studio 2015, VB, in Windows 10, I have a small program where I use the arp -a command to pick up the mac and I/P addresses of connected devices on my lan. From everything I've read (and tried), the answer somehow comes back to DNS.getHostEntry which throws a …

Programming vb.net
Member Avatar for paul1145
0
385
Member Avatar for clementer

I have an array list that looks like this. 8.1,6.5,4.4,3.2,1,8.9,5,1.4,0.1,1,8.7,6.2,4.3,3.2,3 I would like that my program selects every 5 numbers randomly. for example to select 8.1,6.5,4.4,3.2,1,8.7,6.2,4.3,3.2,3 as you can see it selected 5 numbers from the begging and 5 more from the end and saves them Random random_method = new …

Member Avatar for rproffitt
0
234
Member Avatar for r4ds

Hello. It is something very simple for someone who knows javascript. How to capture the text content of the pressed element? Important is that the page is built with PHP. <li><a onclick='cat();' href='#'>Text 1</a></li> <li><a onclick='cat();' href='#'>Text 2</a></li> <!-- Above PHP, important: text content element is dinamic--> <script> function cat() …

Member Avatar for r4ds
0
175
Member Avatar for Aurora51x

|Visual Studio C# Windows Form Application| I'm trying to load and save multiple comboboxes selections to a XML file or file to a specific location using diolog box to know where to save and load. Any help will be appreciated.

Member Avatar for rproffitt
0
173
Member Avatar for Liam_12

Am at an intermediate level in python and tkinter, and have been trying to figure out how to get the code below into some kind of workable form I can understand. What I want to do is, like, if I typed something into the bottom frame, then I'd like to …

Programming python
Member Avatar for Husoski
0
172
Member Avatar for Mohamed_144
Member Avatar for rproffitt
0
169
Member Avatar for zattat

import threading,time,sys try: import requests except: print("Please install requests module!") sys.exit() path=input("File (example: file.m3u) => ") out=path+"_out.txt" try: with open(path, 'r') as file_in: lines = file_in.read().splitlines() except: print("File error or not found!") file_out=open(out, "w") #print(str(lines)) all = len(lines) print(all) worked=0 print("Scanning {} lists... Worked will write in {}".format(all,out)) time.sleep(5) def …

Programming python vb.net
Member Avatar for Reverend Jim
0
134
Member Avatar for Udara_1

I want connect microsoft sql server database using servername,username,password,port number and service name to asp.net api 2019. This code segment I'm using SqlConnection con = new SqlConnection(@"server=10.d.13.2q0; database=sdssdsd; Integrated Security=False; User ID=lmgdgdfdfddgs; Password=sdsdsdsds"); please help me. what is the correct code

Member Avatar for rproffitt
0
121
Member Avatar for Jean_19

for(#iterations) solve non linear solution get new flux klinkages solve LD and Lq solve new Id and Iq if (abs(Id_new - Id_old) < 0.01) break else put in the new Id_new and Iq_new

Programming python
Member Avatar for rproffitt
0
117
Member Avatar for Ed_279

I run the bridge game on a Monday evening and just recently I brought in a card dealer so the computer can select the cards and deal them into 4 hands. 20 sets of these hands and we can play for the evening. My problem is putting the dealt card …

Member Avatar for Dani
0
114
Member Avatar for NotAceGG

#include<graphics> main() { int gd=0,gm; initgraph(&gd,&gm,""); circle(100,80,20); closegraph(); } Error:fatal error: graphics: No such file or directory

Programming c
Member Avatar for Husoski
0
93
Member Avatar for Harvey_4

Hi, i wanted to see if someone can help me, im new on this so i dont understand very good, any way, im trying to make a pic that show de characters that recive by bluetooth, to do that im using UART and a LCD, if someone can help with …

Member Avatar for rproffitt
0
74
Member Avatar for NotAceGG

class Complex { private: int a,b; public: set_data(int,int); show_data() { std:: cout<<"\na="<<a<<"\n"<<"b="<<b; } }; Complex::set_data(int x,int y) { a=x;b=y; } main() { Complex c1; c1.set_data(3,4); c1.show_data(); } Error: error: 'cout' is not a member of 'std' I tired to slove this error but this is not slove

Programming c++
Member Avatar for Husoski
0
71
Member Avatar for codenut

Create an object in its own file called “LED.asm” that draws a RED Led in the middle of the BITMAP Display. Make the LED your own design, but make sure that it looks like an LED. Assumptions: The Bitmap Display will be stored in the Heap starting at Address 0x10040000. …

Programming assembly
Member Avatar for rproffitt
0
71
Member Avatar for Ed_279

I run the bridge game on a Monday evening and just recently I brought in a card dealer so the computer can select the cards and deal them into 4 hands. 20 sets of these hands and we can play for the evening. My problem is putting the dealt card …

Member Avatar for Dani
0
57

The End.