Results 1 to 4 of 4
  1. #1
    meb
    meb is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Default Something to do with Netbeans

    package rops;

    import java.util.*;
    public class ROPS {
    Scanner sc = new Scanner(System.in);

    public void main(String[] args) {
    boolean keepon=true;
    System.out.println("Welcome to Rock Paper Scissors \n" );
    while (keepon = true)
    {
    System.out.print("Choose your weapon");

    String p1 = sc.nextLine();
    int p2int;
    String p2;
    Random Dice = new Random();
    int roll = Dice.nextInt(3) + 1;
    System.out.println(roll);
    }
    }

    }




    I tried to run on netbeans and got:

    rops.ROPS class was not found in ROPS class




    Help?

  2. #2
    meb
    meb is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Default Re: Class Wasn't Found in Project

    Its not done yet

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: Class Wasn't Found in Project

    Why are you posting this in a thread of 2012? Creating your own thread is free of charge.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Something to do with Netbeans

    And there you go.
    Your own thread.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 16
    Last Post: 07-02-2014, 02:02 PM
  2. Netbeans help
    By aanders5 in forum NetBeans
    Replies: 0
    Last Post: 02-23-2011, 08:12 PM
  3. cvs in netbeans
    By okabeer in forum NetBeans
    Replies: 3
    Last Post: 04-26-2009, 12:55 PM
  4. NetBeans IDE 6.5 - The only IDE you need
    By Eranga in forum Reviews / Advertising
    Replies: 2
    Last Post: 11-26-2008, 10:37 AM
  5. netbeans
    By sweet angle in forum NetBeans
    Replies: 1
    Last Post: 08-05-2008, 05:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •