generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Java

Previous Thread :: Next Thread 
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:24 AM
public class Main{
public static void main(String[] args){
public void b(int num; int num2){
int a = 4;
int b = 5;
b(a;b);
}
}
}
Main.java:3: error: illegal start of expression
public void b(int num; int num2){
^
Main.java:3: error: illegal start of expression
public void b(int num; int num2){
^
Main.java:3: error: ';' expected
public void b(int num; int num2){
^
Main.java:3: error: ';' expected
public void b(int num; int num2){
^
Main.java:6: error: ')' expected
b(a;b);
^
Main.java:6: error: not a statement
b(a;b);
^
Main.java:6: error: ';' expected
b(a;b);
^
7 errors
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:30 AM
Hello? anyone a java scripter?
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:36 AM
Bump #1
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:38 AM
Oh so no one is a java scripter? except me?
Report Abuse
Phewh is not online. Phewh
Joined: 25 Aug 2014
Total Posts: 29
28 Nov 2015 06:39 AM
I think you should replace b(a;b) with b(a, b);
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:40 AM
That didn't work.
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:41 AM
Now I have 4 errors:

Main.java:3: error: illegal start of expression
public void b(int num; int num2){
^
Main.java:3: error: illegal start of expression
public void b(int num; int num2){
^
Main.java:3: error: ';' expected
public void b(int num; int num2){
^
Main.java:3: error: ';' expected
public void b(int num; int num2){
^
4 errors
Report Abuse
Phewh is not online. Phewh
Joined: 25 Aug 2014
Total Posts: 29
28 Nov 2015 06:44 AM
Replace
void b(int num; int num2){
int a = 4;

With

void b(int num, int num2){
int a = 4;
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:49 AM
Now i have 6 errors.
Report Abuse
Phewh is not online. Phewh
Joined: 25 Aug 2014
Total Posts: 29
28 Nov 2015 06:51 AM
public void*
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:52 AM
its not that error, if you add a comma, then it will increase the error.
Report Abuse
Phewh is not online. Phewh
Joined: 25 Aug 2014
Total Posts: 29
28 Nov 2015 06:55 AM
I think you should read through this: http://www.tutorialspoint.com/java/java_methods.htm
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 06:55 AM
lets break it down:
public void b(int num, int num2){

Report Abuse
Phewh is not online. Phewh
Joined: 25 Aug 2014
Total Posts: 29
28 Nov 2015 06:59 AM
What if you put your function 'b' outside the main function?
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 07:09 AM
then it will error.
Report Abuse
Psvita567 is not online. Psvita567
Joined: 28 Sep 2014
Total Posts: 861
28 Nov 2015 07:13 AM
bump #3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image