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)) ;
>>40
Post some more of your code and I just might.
Name:
Anonymous2008-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.
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:
Anonymous2008-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:
Anonymous2008-03-16 21:05
>>52
op here, as i said im not the one being a douchebag, those people arent me
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:
Anonymous2008-03-16 21:09
>>53
Inb4 nobody responds to this because they are scared of the truth
Name:
Anonymous2008-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:
Anonymous2008-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:
Anonymous2008-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:
Anonymous2009-03-06 7:37
The file you could try some hackery involving the overloaded.