Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

Migration of MSO links to MSE links
Source Link

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

added 25 characters in body
Source Link
OscarRyz
  • 200k
  • 119
  • 399
  • 577

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 or|| roll == 11 ) {

and not

roll = 7 && 11

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

roll == 7 or roll == 11

Should be

roll == 7 or roll == 11 

and not

roll = 7 && 11

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

1) In Java "OR" operator is "||" not "&&" and comparison operator is "==" as in Python

So

if roll == 7 or roll == 11:

Should be

if( roll == 7 || roll == 11 ) {

and not

 if( roll = 7 && 11 ){

2) randrange is : random generator from there you can search: Random in Java

Which will lead you to something like: Random.nextInt()

Use this algorithm ( a) search Internet for Python function, b) understand what it does c) search it in java ) for the next assignment you have and you're done.

You can always ask here again, that's what this site is all about after all

Source Link
OscarRyz
  • 200k
  • 119
  • 399
  • 577
Loading
default

AltStyle によって変換されたページ (->オリジナル) /