7 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Ankit_18

import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Counter { public void split(String a,ArrayList<String> al) { char ch[]=a.toCharArray(); int p=0; for(int i=0;i<ch.length;i++) { if(ch[i]==32) {List<String> l=al.subList(p,i); ArrayList<String> al1=new ArrayList<String>(l); //String str=new String[al1.size()]; //al1.toArray(str); //al1.add(str); //al1.add(al1); //why this is also wrong al1.add(al.sublist(p,i)); p=i; System.out.println(al1); } } } public static void main(String... s) …

Member Avatar for stultuske
0
256
Member Avatar for scorpionz

Hi this is scorpionz I am uploading an excel sheet file using PHP Now the file code is working fine for gif files but not working if i provive xls extension Here is the php main code [code] <?php // include 'config.php' include 'uploadcode.php'; if(isset($_POST['upload_file'])) { $user_file = $_FILES["car_info_file"]["name"]; upload_files($_FILES["car_info_file"]["name"]); …

Member Avatar for SuperGOAT
0
13K
Member Avatar for Slavi

Hey guys, I am making a few gui programs and I was wondering on this code .. class PaintChart(wx.Panel): def __init__(self, parent, data): self.data = data.split() wx.Panel.__init__(self, parent) self.SetBackgroundColour('BLACK') self.Bind(wx.EVT_PAINT, self.drawChart) def drawChart(self, e): dc = wx.PaintDC(self) dc.SetDeviceOrigin(30, 240) dc.SetAxisOrientation(True, True) dc.SetPen(wx.Pen('RED')) dc.DrawRectangle(1, 1, 300, 200) Here I set the …

Member Avatar for Slavi
0
410
Member Avatar for Joseph_13

Can someone kindly help me with a solution to this assignment http://math.hws.edu/eck/cs225/s09/lab9/ CPSC 225, Spring 2009 Lab 9: Sets in the Java Collection Framework For this week's lab, you will use two of the classes in the Java Collection Framework: HashSet and TreeSet. You will use these classes to implement …

Member Avatar for stultuske
0
792
Member Avatar for Schol-R-LEA

When posting any request for help with an assembly language problem, we ask that you provide some crucial information: * The operating system (Windows, Linux, MacOS, etc.) the program will be running under, including the version, * The assembler you are using, including the version, * the bit width being …

1
180
Member Avatar for rouse

I am trying to add a secondary level to Chris Coyer Magic Line menu. I have made some progress but it is not complete. Right now I am stuck on 3 spots to make it complete. The placement of the secondary menu, the overlay of the secondary menu and the …

Member Avatar for rouse
0
482
Member Avatar for tapananand

I know that in case of virtual inheritance, a vptr is needed to access the base class members, so I looked at a program that involved virtual inheritance but I was amazed at the size of the class. The code is below: #include<iostream> using namespace std; class Base { public: …

Member Avatar for mike_2000_17
0
1K

The End.