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

Pages: 1-

Another Java Question Niggers

Name: Anonymous 2009-03-19 16:13

I have a method that manipulates a string and returns said manipulated string. The problem is, that I don't know how to input a string into this method from "str = keyboard.nextLine();" (str being the string i need to put into the method) any kind anon have an idea. I have also tried a google search, no luck. Although I'm probably searching with the wrong keyword

Name: Anonymous 2009-03-19 16:14

I lol'd

Name: Anonymous 2009-03-19 16:14

u betta get sum white boy 2 do it 4 u homie

Name: Anonymous 2009-03-19 16:16

>>3
yo man dats stupid, best get some azian, they gud wif math n shit

Name: Anonymous 2009-03-19 16:22

fuk no man chinks r bakstabber n u cant tell em apart if shit gone bad i tell ya maybe u think your a real O.P. but listen 2 me slanteyes are cray, go fo safe target

Name: Anonymous 2009-03-19 16:24

getLine >>= putStrLn

Name: Anonymous 2009-03-19 16:30

Here ya go homie:
first do this after str=keyboard.nextLine(); (or whatever this shit is, probably some retarded input "helper" from a retarded outdated java curriculum)

manipulate(str);

then in your class you name your method: (static void if calling from main)
void manipulate(String str){
  
}

Name: Anonymous 2009-03-19 16:31

>>7 doesn't understand the subtle satire found in >>3-5

Name: Anonymous 2009-03-19 16:32

>>6
interact id

Name: Anonymous 2009-03-19 18:47

>>1
I have no fucking clue what this is supposed to mean but I'll take a guess.

public class StringManipulator {
    public static void main {
        java.util.Scanner scan = new java.util.Scanner(System.in);
        while(true) {
            System.out.println(StringManipulator.manipulateString(scan.nextLine()));
        }
    }
    public static String manipulateString(String input) {
        java.util.Random r = new java.util.Random();
        char[] sussman = {'s','u','s','s','m','a','n'};
        String theSuss = "";
        while(true) {
            theSuss+=sussman[r.nextInt(sussman.length)]+"";
            if(theSuss.indexOf("sussman")>=0) break;
        }
        return theSuss;
    }
}

Name: Anonymous 2009-03-19 18:49

>>10
Fixed so it actually compiles.
public class StringManipulator {
    public static void main(String[] args) {
        java.util.Scanner scan = new java.util.Scanner(System.in);
        while(true) {
            System.out.println(StringManipulator.manipulateString(scan.nextLine()));
        }
    }
    public static String manipulateString(String input) {
        java.util.Random r = new java.util.Random();
        char[] sussman = {'s','u','s','s','m','a','n'};
        String theSuss = "";
        while(true) {
            theSuss+=sussman[r.nextInt(sussman.length)]+"";
            if(theSuss.indexOf("sussman")>=0) break;
        }
        return theSuss;
    }
}

Name: Anonymous 2009-03-19 20:19

>>11
Fixed so that it's expert quality.

import java.util.*;
class StringManipulator {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(true) {
            System.out.println(manipulate(sc.nextLine()));
        }
    }
    static String manipulate(String s) {
        Random r = new Random();
        char[] sussman = {'s','u','s','s','m','a','n'};
        String theSuss = "";
        do{
            theSuss+=sussman[r.nextInt(sussman.length)]+"";
        }while(theSuss.indexOf("sussman")>=0);
        return theSuss;
    }
}

Name: Anonymous 2009-03-19 21:35

I'd manipulate the Suss' long string if you catch my drift.

Name: Anonymous 2009-03-20 5:07

What is a java question nigger and why we want another one?

Name: Anonymous 2009-03-20 6:33

If it's anything like an oreo president nigger, I'd rather not!

Name: Anonymous 2009-08-17 0:14

Lain.

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