- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
8 Posted Topics
try to read in elliot coffman book in java its very simple to understand public class eggs {public static void main(String args []) { int NumberOfEggs =25; System.out.print("Full dozen"+ duzen(NumberOfEggs ) ); } public int duzen( int x) {return x/12; } }
i think you must try this method for find max and the same method for min private int findMax(int a, int b, int c) {int max=math.max(Math.max(a,b),c) return max; }
Ilove this site
if methode return type is int you must return int i think thats you must return int.
[code]import java.util.Scanner; import java.io.*; public class readNumbers { public static void main(String[]args) throws IOException { int num; String filename; Scanner keyboard = new Scanner(System.in); System.out.print("Enter the filename: "); filename=keyboard.nextLine(); FileWriter fwriter=new FileWriter(filename); PrintWriter outputFile=new PrintWriter(fwriter); for(int i=1; i<=5; i++) { System.out.print("Enter a number: "); num=keyboard.nextInt(); outputFile.println(num); keyboard.nextLine(); } outputFile.close(); int …
special thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanks
do you use apackage or namespace named usb
The End.
doleh