Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

lol help

Name: Anonymous 2008-03-15 20:39

Noob programmer here, I can't figure out why I keep getting the error "Cannot find symbol class ArrayList".


import java.awt.*;
import javax.swing.*;
import java.util.Scanner;

public class MyArray{  
  


     public static void main()     {
        int i=0, thesame, size;         
      
        ArrayList<String> list = new ArrayList<String>();
         Scanner input = new Scanner(System.in);
         bString = "done";
         for(i=0;i!=2.5;i++){
              System.out.print("Enter a name");
              nextWord = input.nextString;
              list.add(i, nextWord);
              boolean theSame = bString.equals("Done");
              if(theSame = 0)
                  i = 1.5;
         }   
          int size = list.size();
          for(i=0;i<=0;i++){
              String temp = copy.get(i);
              System.out.print(temp);
            }  
               
               
    }
    public ArrayList sort(ArrayList list){
      
        int top, i, maxIdx, copy1;
       
       
        ArrayList<Sring> copy = new ArrayList<String>(list.size());
       
    for (int i = 0;i < list.size;i++)
        copy.add((string)list.get(i));
    for (int top=copy.size-1;top > 0;top--) {
        ArrayList maximum = ((string)copy.get(0));
        int maxIdx = 0;

        for (int search=1;search <= top;search++){
            String name = ((string)copy.get(search)) ;
            String topName = ((string)copy.get(top)) ;
          
            if (name.compareTo(top) = 1) {
                 Sting maximum = ((string)copy.get(search));
                 maxIdx = search;
            }
        }
        if (maxIdx != top) {
        ArrayList swap = ((string)copy.get(top));
        copy1= ((string)copy.get(maxIdx));
        copy.set(top,copy1);
        copy.set(maxIdx,swap);
       }
     }
    return copy;


}
}

Name: Anonymous 2008-03-16 20:46

>>40
Post some more of your code and I just might.

Name: Anonymous 2008-03-16 20:48

Op here, I think I might actually switch my major to something that will actually land me a decent job that actually pays good, requires good social skills and strong math, and doesn't have the shit being outsourced out of it.

Name: Anonymous 2008-03-16 20:48

Please do!

Name: Anonymous 2008-03-16 20:53

op here
>>42
was not me,
also fuck off, i dont give a damn about my english on 4chan. but i do agree with 42 as well in some aspects,

Name: Anonymous 2008-03-16 20:54

Well, I care. And that's all that matters.

Name: Anonymous 2008-03-16 20:56

This is the cancer that's killing /prog/.

Name: Anonymous 2008-03-16 20:57

>>45
>>46
cry some more

Name: Anonymous 2008-03-16 20:58

>>44
also fuck off, i dont give a damn about my english on 4chan.
lrn2shibboleth, cancermonkey.

Name: Anonymous 2008-03-16 20:59

>>47
You're very close to angering me. I suggest you take a step back and reflect, son.

Name: Anonymous 2008-03-16 21:01

op here
>>47
was not me again

Name: Anonymous 2008-03-16 21:01

op here
disregard that i sucks teh cocks

Name: Anonymous 2008-03-16 21:02

There are two people on /prog/ who know enough Java to help you. Fuqin angering them isn't in your best interest.

In other words, back to /b/, please.

Name: Anonymous 2008-03-16 21:04

/prog/ has been dead for a while now, seriously, its a programming board, the place where the cancer killing society(i.e. socially retarded fatasses who contribute little to the world) can gather and feel the illusion of being elite some how, yes op the comp sci industry is a joke at the moment and probably for a LONG time, you will get an entry level programming job and go nowhere, i suggest if you are good with the math just major in math and go into high level finances, work for big coorperations or something, if you are indeed good at math and have reasonable social skills you can pull it off, steer clear the of comp sci for now though, take it as an elective if you want, i dont think you suck at programming, i mean ya you do, but everyone does when they start

Name: Anonymous 2008-03-16 21:05

>>52
op here, as i said im not the one being a douchebag, those people arent me

Name: Anonymous 2008-03-16 21:05

tl,dr

Name: Anonymous 2008-03-16 21:06

>>54
Stop being a douchebag. Douchebag.

Name: Anonymous 2008-03-16 21:09

Op here, I loved my last comp sci class as it was based in c++. I was great at it and I ended up with an A in the class, but so far java just seems like a pain in the ass language that has no benefit unless i want to make little faggy applets, of course since im new at this im probably wrong but it just seems that way right now which is really turning me off from computer science

Name: Anonymous 2008-03-16 21:09

>>53
Inb4 nobody responds to this because they are scared of the truth

Name: Anonymous 2008-03-16 21:13

>>58
we know that it is true, but i do it for the passion of programming, ya I probably will never make too too great of money but I love to program and thats all that matters

Name: Anonymous 2008-03-16 21:13

>>57
If you approach Java like Sepples you're going to suck royally at it. It may not be perfectly OO, but it's still a fuck of a lot more OO than Sepples, and it requires a different style of programming.
Though the mistakes in the code posted here are so very basic and not specific to Java I doubt OP has ever programmed in anything except maybe BASIC.

>>58
Read the FUCKING HATE REDDIT thread. I don't feel like repeating myself.

Name: Anonymous 2008-03-17 3:32

>>57
Applets are so last century ...
The only reason for doing anything with Java is that the GUI programming is far less of a PITA than it is in C++

Nowadays with Jython/JRuby/Groovy/Scala...  running on the JVM, it doesn't have even that advantage, since they all call into the same APIs

Name: Anonymous 2009-03-06 7:37

The file you could   try some hackery   involving the overloaded.

Name: Anonymous 2009-07-02 21:58

How deliciously enterprise.

Name: Anonymous 2010-12-17 1:27

Xarn is a bad boyfriend

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List