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

Pages: 1-

Java help

Name: Anonymous 2011-09-23 3:11

Hey /prog/
Any Java coders here?
I need someone to write me a statement that prints out a user defined variable divided by 3.
If I do this, my friend will buy me Jimmie Johns. Help?
EDIT: I need this to be the full script.

Name: Anonymous 2011-09-23 3:27


int a
int b
int c = 3 // Thanks adam
b = a / 3
print b


That'll be $500000.

Name: Anonymous 2011-09-23 4:12

import java.util.*;
public class Divide {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(true) {
            System.out.print("Enter a number: ");
            int x = sc.nextInt();
            System.out.println(x + "/3 = " + (x/3.0f));
        }
    }
}

Name: Anonymous 2011-09-23 6:00

Who is Jimmie Johns and why are you "buying" him?  Are you an queer!

Name: Wikipedia 2011-09-23 7:17

Jimmy John's is a franchised sandwich restaurant founded by Jimmy John Liautaud in 1983 and headquartered in Champaign, Illinois.[1][2] The franchise has over 1000 locations in 39 states[3] and has opened approximately 200 units per year for the last three years.[4] 95% of the locations are franchise-owned.

Name: Anonymous 2011-09-23 7:20

>>3
So, Java can concatenate int and String now? I don't buy it.

Name: Anonymous 2011-09-23 8:01

>>2
It's been a slow morning, I laughed really hard at that.  I love you.

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