- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Re: hi,everyone: I want to study jsp,but what am I do,where begin from.I can write java program,Can you help me?:) | |
Re: hi: you can see my code whether help you package com.structure; import java.util.ArrayList; import java.util.List; public class Text { String statement; List<Character> listchar = new ArrayList<Character>(); public Text(String statement) { super(); this.statement = statement; exchangeList(); } private void exchangeList() { for (int i = 0; i < statement.length(); i++) { … | |
Re: hi: you can do that like that is package com.structure; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class TestArray { static List<String> list = new ArrayList<String>(); // static Object[] state; public static void main(String agrs[]) { Scanner scan = new Scanner(System.in); System.out.println("Please input number:"); int num = scan.nextInt(); System.out.println("Please input … | |
Re: hi, Maybe this code can help you. package com.prom1; import java.util.Scanner; public class AnalysisTest { public static void main(String args[]) { Analysis application = new Analysis(); // create Analysis object application.processExamResults(); // call method to process results } // end main } // end class AnalysisTest class Analysis { public … | |
Re: hi: you are attendion to that there is only one if in the quiz function.so the * is seven. | |
Re: hi: you can see this code,but I can't understand that Console meaning.Can you explain that Console Class? public static void main(String[] args) throws IOException { // Variable Declaration NumberFormat moneyFormat = NumberFormat.getCurrencyInstance(); String header = ""; String footer = ""; String typeOfDrink = ""; // The available selections on the … | |
Re: hi: your writing which method of arccoseA maybe is wrong! | |
Re: :) hi: you can see that code.Maybe is right. [code=java] package com.jmenu; public class Fibonacci { public static void main(String agre[]){ double frontsum=0; int finditem=3; double a=Double.parseDouble(agre[0]); System.out.println(a); frontsum = calculateItemSum(finditem); do{ finditem++; frontsum+=calculateItemSum(finditem); }while(frontsum<a); System.out.printf("sum is: %f",frontsum); System.out.printf("item is: %d",finditem); System.out.printf("\nitem is: %f",calculateItemSum(96)); System.out.printf("\n -: %f",frontsum-calculateItemSum(96)); } static double … | |
Re: try this function: package com.Thread; public class DigProd { public static void main(String args[]) { long a = 123456789; long ai = DigProdIterative(a); System.out.println("Digital Product of a: " + ai); long ar = Recursive(a); System.out.println("Digital Product of a: " + ar); } public static long doNumRecursive(long a){ long first,y=1; String … | |
Re: yes ,if infinite loop ,that code while(true){ } | |