Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Tags
Member Avatar for Trevor_5

below is the code i have and i am getting an unhandled IOException in the inputstreams: import java.nio.file.*; import java.io.*; import static java.nio.file.AccessMode.*; import static java.nio.file.StandardOpenOption.*; import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class FinalProject extends JFrame implements ActionListener { JLabel guess = new JLabel("Guess the …

Member Avatar for JamesCherrill
0
356
Member Avatar for Trevor_5

i have a code for counting a ones digit in a random number generated 0-100,000,000 and has to display the count 0-9 and how many times they occur.

Member Avatar for stultuske
0
162
Member Avatar for Trevor_5

it gives me a arithmeticException on this line System.out.println("\nTotal = " + dSum + " - Average " + (dSum/divider) ); import java.util.*; public class Lab1A{ public static void main(String [] args){ Scanner input = new Scanner (System.in); int [] k = new int [20]; int [] d = new …

Member Avatar for Trevor_5
0
153
Member Avatar for Trevor_5

i have to write a code that has a random number generated between 1-100 and the user has the choice to keep the number, discard the number and quit the program. and when the user quits the program displays the numbers kept and discarded, but i dont know how to …

Member Avatar for JamesCherrill
0
312
Member Avatar for Piers Rollins

May i know what is the need of using HTML Navigation (<Nav> Tag) in a website for SEO purpose?

Member Avatar for Zueas
0
140
Member Avatar for daisyy

<img src="D:/nameoffolder/?src='$[description]'" width="50px" /> <input type="text" name="description" /> <input type="file" name="file" /> <input type="submit" /> uploaded image to be displayed at the same time. Here i can get the path of an image in description but i want that to be displayed on the same jsp page.

Member Avatar for Trevor_5
0
136
Member Avatar for Trevor_5

my code is as follows: class pottertr_Point{ private String name; private double x; private double y; public pottertr_Point(){ name="Org"; x=(0); y=(0); } public pottertr_Point getPoint(){ pottertr_Point p= new pottertr_Point(); p.name=this.name; p.x=this.x; p.y=this.y; return p ; } public void setPoint(pottertr_Point p){ this.name=p.name; this.x=p.x; this.y=p.y; } public void setName(String name){ this.name=name; } …

Member Avatar for stultuske
0
130
Member Avatar for Trevor_5

trying to get the maximum location in my matrix of 4 columns and 3 rows. can anyone help point me in the right direction import java.util.*; public class Program3{ public static void main(String[] args){ double [][] m = createArray(); double [] colsum= new double [m[0].length]; for(int i=0;i<m[0].length;i++) colsum[i]= sum(m,i); printResult(m, …

Member Avatar for stultuske
0
199
Member Avatar for Trevor_5

import java.util.Scanner; public class Program2{ public static void main (String []args) { Scanner input = new Scanner (System.in); int[] data = new int[256]; int inAscii; char inChar; String inString= input.nextLine(); for (int i = 0; i < inString.length();i++) { inChar=inString.charAt(i); inAscii=(int) inChar; data[inAscii]++; } for (int i= 1; i<256; i++){ …

Member Avatar for Trevor_5
0
246
Member Avatar for Trevor_5

what input statement is used in a float..` import java.util.Scanner; public class Program1 { public static void main(String[] args) { float Fahrenheit, celsius; Scanner input = new Scanner(System.in); System.out.print("Enter temperatue in Celsius"); celsius = input.nextDouble();<---- this line is giving a run time error. Fahrenheit= ((9 * celsius)/5 +32 ); System.out.println(celsius …

Member Avatar for JamesCherrill
0
141