User Profile
Collapse
-
Thanks Jos! I think you're the only one who always replies to my posts. =)... -
How to sort a multi dimensional array in a table
my program asks input (CDtitle, category, container) from the user and shows it in a table.. one of the required functions of my program is to show the sorted input in my table.. how do i do these? in a not so complicated way.. i need help.. -
-
Help! Exception in thread "main" java.util.NoSuchElementException
here's the complete lines of errors..
Exception in thread "main" java.util.NoSuc hElementExcepti on
at java.util.Strin gTokenizer.next Token(StringTok enizer.java:332 )
at CsvTest.readFil e(CsvTest.java: 26)
at Trial.main(Tria l.java:24)
I have no idea what to change here because I don't know what is wrong..please help me out...
...Code:import java.io.*; import java.util.*;
-
How do i convert a decimal number to octal?
Here's the code is used but...but still something is wrong... i need help...
...Code:/*CONVERTING DECIMAL TO OCTAL*/ String inputDeci,octal=""; int deci,count=0, i, h; inputDeci = JOptionPane.showInputDialog("Enter a decimal number "); deci = Integer.parseInt(inputDeci); int [] quotient = new int [50]; int [] -
How do i sort a string array in alphabetical order?
these are the loops i used:
...Code:for (h = 0; h<name.length;h++) { highestOrder [h] = Integer.valueOf(name[h].charAt(0)); highestName [h] = name[h]; for (int count = 0; count<name.length;count++) { if (Integer.valueOf(name[count].charAt(0)) < highestOrder[h]) { highestOrder[h] -
How do i convert a char to int?
is there any way that i could convert a character from a string to an integer in an array?
like,
String a = "1110";
and convert it to:
int b[] = {1,1,1,0}; -
Thanks Jos!I did some confusing move but i did finish this program...! Congratulations self!...Leave a comment:
-
How do i substring a string?
i'm really bothered, no, i really have no idea how to substring a string so that i will be able to convert binary to decimal(this is the program i'm working on). please help me... just a the necessary lines of codes that would give me a hint on how to do this..please... . -
HaifaCarina started a topic What does "java.awt.Button cannot be cast to javax.swing.JComboBox" mean?in JavaWhat does "java.awt.Button cannot be cast to javax.swing.JComboBox" mean?
i have this unfinished java program and i can't figure out what is the problem..
please help...
/**
* @(#)Answer3.jav a
*
*
* @author
* @version 1.00 2008/1/17
*/
import javax.swing.*;
import java.awt.*;
import java.applet.*;
import java.awt.event. *;
import javax.swing.bor der.*;
public class Answer3 extends Applet implements... -
How to return an array of strings and print it on my main() function
This is how my source code looks like:
[code=c]
#include <stdio.h>
int getInfo();
int main(void)
{
int name, firstName[10];
name = getInfo(firstNa me);
printf("Name: %s\n", firstName);
return 0;
}
int getInfo()
{
char firstName[10];
printf("\nNOTE: Answer the following information with... -
How to save a string with white spaces on an array
I want to save and print a full name in one array. The program would look like this:
Enter your full name: Mary Smith
Your full name is Mary Smith.
but I don't know how. what i did was i made two arrays. the first array was for the first name and the second array was for the last name. So the program would look like this already..
Enter your first name: Mary
Enter your last name:...
No activity results to display
Show More
Leave a comment: