103 Posted Topics

Member Avatar for xonxon

[QUOTE=xonxon;1022577][code] import java.util.*; public class course { static Scanner sc=new Scanner(System.in); public static void main(String[]args) { String name,students,addStudent; int numberOfStudents; String courseName,getName,getStudents; int getnumberOfStudents; Course course1=new Course("C++"); Course course2=new Course("Java"); course1.addStudent("Peter"); course1.addStudent("Brian"); course1.addStudent("Anne"); course2.addStudent("Peter"); course1.addStudent("Steve"); System.out.println("Num of student in course1:"+course1.getnumberOfStudents()); String[]students=course1.getStudents(); for (int i = 0; i < course1.getNumberOfStudents(); i++) …

Member Avatar for xonxon
0
112
Member Avatar for iamwa

[QUOTE=iamwa;1022184]HI ! GUYS WILL YOU PLEASE HELP ME IN SOLVIG A SIMPLE QUESTION RELATING TO JAVA RMI MY QUESTION IS HOW TO START RMI REGISTRY PROGRAMATICALY with out TYPING IN CMD(command prompt ) start rmiregistry ?[/QUOTE] maybe, LocateRegistry.createRegistry(port) :icon_rolleyes:

Member Avatar for kekkaishi
0
47
Member Avatar for El Duderino

> i dont know where to put my getValidString validation when i ask the user if he wants to judge another public class JudgingApp { public static void main(String args[]) { Scanner sc= new Scanner(System.in); DecimalFormat df = new DecimalFormat("0.##");//format decimals to 2 decimal places //These variables hold the max …

Member Avatar for kekkaishi
0
164

The End.